Remove NativeWindow::GetWebContents

This commit is contained in:
Cheng Zhao 2015-06-25 14:54:00 +08:00
parent 01dc0f973c
commit 9f52b11761
7 changed files with 25 additions and 44 deletions

View file

@ -728,9 +728,9 @@ void NativeWindowViews::OnWidgetActivationChanged(
else
NotifyWindowBlur();
if (active && GetWebContents() &&
if (active && inspectable_web_contents() &&
!inspectable_web_contents()->IsDevToolsViewShowing())
GetWebContents()->Focus();
web_contents()->Focus();
// Hide menu bar when window is blured.
if (!active && menu_bar_autohide_ && menu_bar_visible_)