From 4b57e1f4f8adb7cfcb52db1f2bdbafc3da7aefec Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 11 Jul 2014 23:14:20 +0800 Subject: [PATCH] Warn about using GetNativeView() in views. --- brightray/browser/views/inspectable_web_contents_view_views.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/brightray/browser/views/inspectable_web_contents_view_views.cc b/brightray/browser/views/inspectable_web_contents_view_views.cc index 903c448e42f..95cf85eda87 100644 --- a/brightray/browser/views/inspectable_web_contents_view_views.cc +++ b/brightray/browser/views/inspectable_web_contents_view_views.cc @@ -91,6 +91,8 @@ views::View* InspectableWebContentsViewViews::GetWebView() { } gfx::NativeView InspectableWebContentsViewViews::GetNativeView() const { + NOTREACHED() << "GetNativeView() shouldn't be used when having views library, " + "use GetView() instead"; return inspectable_web_contents_->GetWebContents()->GetView()->GetNativeView(); }