Remove NOTREACHED that triggers on ozone platforms.
Native frames are not guaranteed to be supported on Ozone/Wayland.
This commit is contained in:
parent
466f5e23db
commit
152141d7f4
|
@ -409,12 +409,10 @@ views::NonClientFrameView* CefWindowView::CreateNonClientFrameView(
|
||||||
// DesktopNativeWidgetAura::CreateNonClientFrameView() returns
|
// DesktopNativeWidgetAura::CreateNonClientFrameView() returns
|
||||||
// NativeFrameView by default. Extend that type.
|
// NativeFrameView by default. Extend that type.
|
||||||
return new NativeFrameViewEx(widget, this);
|
return new NativeFrameViewEx(widget, this);
|
||||||
} else {
|
|
||||||
// Widget::CreateNonClientFrameView() returns CustomFrameView by default.
|
|
||||||
// Need to extend CustomFrameView on this platform.
|
|
||||||
NOTREACHED() << "Platform does not use NativeFrameView";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use Chromium provided CustomFrameView. In case if we would like to
|
||||||
|
// customize the frame, provide own implementation.
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue