Warn about using GetNativeView() in views.

This commit is contained in:
Cheng Zhao 2014-07-11 23:14:20 +08:00
parent 52c521f8b0
commit 4b57e1f4f8

View file

@ -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();
}