Index: chrome/browser/download/download_crx_util.cc |
diff --git a/chrome/browser/download/download_crx_util.cc b/chrome/browser/download/download_crx_util.cc |
index a7fa2a7a5f74924156d2c03d3157ce2cf18fa9e6..c2fcb832f8c0e93149947c30a0c30ccc7e708a09 100644 |
--- a/chrome/browser/download/download_crx_util.cc |
+++ b/chrome/browser/download/download_crx_util.cc |
@@ -49,9 +49,10 @@ std::unique_ptr<ExtensionInstallPrompt> CreateExtensionInstallPrompt( |
content::WebContents* web_contents = download_item.GetWebContents(); |
if (!web_contents) { |
Browser* browser = chrome::FindLastActiveWithProfile(profile); |
- if (!browser) |
- browser = |
- new Browser(Browser::CreateParams(Browser::TYPE_TABBED, profile)); |
+ if (!browser) { |
+ browser = new Browser( |
+ Browser::CreateParams(Browser::TYPE_TABBED, profile, true)); |
+ } |
web_contents = browser->tab_strip_model()->GetActiveWebContents(); |
} |
return std::unique_ptr<ExtensionInstallPrompt>( |