Warn about using GetNativeView() in views.
This commit is contained in:
parent
52c521f8b0
commit
4b57e1f4f8
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ views::View* InspectableWebContentsViewViews::GetWebView() {
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::NativeView InspectableWebContentsViewViews::GetNativeView() const {
|
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();
|
return inspectable_web_contents_->GetWebContents()->GetView()->GetNativeView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue