Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1102)

Unified Diff: chrome/browser/download/download_crx_util.cc

Issue 2685333005: ash: fix regression where ctrl+n put new window on wrong desktop (Closed)
Patch Set: Rebase to ToT Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>(

Powered by Google App Engine
This is Rietveld 408576698