Remove NOTREACHED that triggers on ozone platforms.

Native frames are not guaranteed to be supported on Ozone/Wayland.
This commit is contained in:
Maksim Sisov 2019-10-04 10:57:29 +00:00 committed by Marshall Greenblatt
parent 466f5e23db
commit 152141d7f4
1 changed files with 2 additions and 4 deletions

View File

@ -409,12 +409,10 @@ views::NonClientFrameView* CefWindowView::CreateNonClientFrameView(
// DesktopNativeWidgetAura::CreateNonClientFrameView() returns
// NativeFrameView by default. Extend that type.
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;
}