diff --git a/atom/browser/web_contents_preferences.cc b/atom/browser/web_contents_preferences.cc index 9ad778970c..82f2023329 100644 --- a/atom/browser/web_contents_preferences.cc +++ b/atom/browser/web_contents_preferences.cc @@ -163,7 +163,7 @@ void WebContentsPreferences::AppendExtraCommandLineSwitches( if (guest_instance_id && !window) { auto manager = WebViewManager::GetWebViewManager(web_contents); if (manager) { - content::WebContents* embedder = manager->GetEmbedder(guest_instance_id); + auto embedder = manager->GetEmbedder(guest_instance_id); if (embedder) window = NativeWindow::FromWebContents(embedder); }