refactor: chromium-style warnings in linux code (#12949)

This commit is contained in:
Jeremy Apthorp 2018-05-16 12:12:45 -07:00 committed by Charles Kerr
parent 2a161e1725
commit da0fd10423
21 changed files with 41 additions and 36 deletions

View file

@ -1592,12 +1592,12 @@ void WebContents::Focus() {
#if !defined(OS_MACOSX)
bool WebContents::IsFocused() const {
auto view = web_contents()->GetRenderWidgetHostView();
auto* view = web_contents()->GetRenderWidgetHostView();
if (!view)
return false;
if (GetType() != BACKGROUND_PAGE) {
auto window = web_contents()->GetNativeView()->GetToplevelWindow();
auto* window = web_contents()->GetNativeView()->GetToplevelWindow();
if (window && !window->IsVisible())
return false;
}