Use auto for embedder var

This commit is contained in:
Kevin Sawicki 2016-05-25 10:34:33 -07:00
parent 88f665bc1b
commit 75754804af

View file

@ -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);
}