From 152141d7f4081568f65a2689e36cf5951c64b5d7 Mon Sep 17 00:00:00 2001 From: Maksim Sisov Date: Fri, 4 Oct 2019 10:57:29 +0000 Subject: [PATCH] Remove NOTREACHED that triggers on ozone platforms. Native frames are not guaranteed to be supported on Ozone/Wayland. --- libcef/browser/views/window_view.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libcef/browser/views/window_view.cc b/libcef/browser/views/window_view.cc index 5bd6bdde3..69b4113da 100644 --- a/libcef/browser/views/window_view.cc +++ b/libcef/browser/views/window_view.cc @@ -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; }