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

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

Issue 1662783002: Remove HostDesktopType from Browser::CreateParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-12
Patch Set: remove desktop_type_ in bookmark_bubble_sign_in_delegate Created 4 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 584ce0dcc6c798813aa3302afb6acab2df95601f..6b78b9dc0962552ce7ba581a5ab790f36ef174ae 100644
--- a/chrome/browser/download/download_crx_util.cc
+++ b/chrome/browser/download/download_crx_util.cc
@@ -47,11 +47,10 @@ scoped_ptr<ExtensionInstallPrompt> CreateExtensionInstallPrompt(
} else {
content::WebContents* web_contents = download_item.GetWebContents();
if (!web_contents) {
- chrome::HostDesktopType active_desktop = chrome::GetActiveDesktop();
Browser* browser = chrome::FindLastActiveWithProfile(profile);
if (!browser)
- browser = new Browser(Browser::CreateParams(Browser::TYPE_TABBED,
- profile, active_desktop));
+ browser =
+ new Browser(Browser::CreateParams(Browser::TYPE_TABBED, profile));
web_contents = browser->tab_strip_model()->GetActiveWebContents();
}
return scoped_ptr<ExtensionInstallPrompt>(
« no previous file with comments | « chrome/browser/download/download_commands.cc ('k') | chrome/browser/download/notification/download_item_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698