diff --git a/atom/browser/web_contents_preferences.cc b/atom/browser/web_contents_preferences.cc index 30635792a1c9..9ad778970cdc 100644 --- a/atom/browser/web_contents_preferences.cc +++ b/atom/browser/web_contents_preferences.cc @@ -156,6 +156,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches( command_line->AppendSwitchASCII(::switches::kEnableBlinkFeatures, blink_features); + // The initial visibility state. NativeWindow* window = NativeWindow::FromWebContents(web_contents); // Use embedder window for webviews @@ -168,7 +169,6 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches( } } - // The initial visibility state. if (window) { bool visible = window->IsVisible() && !window->IsMinimized(); if (!visible) // Default state is visible.