diff options
Diffstat (limited to 'chrome/browser/download/download_crx_util.cc')
-rw-r--r-- | chrome/browser/download/download_crx_util.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/download/download_crx_util.cc b/chrome/browser/download/download_crx_util.cc index c8a0828..cfe5352 100644 --- a/chrome/browser/download/download_crx_util.cc +++ b/chrome/browser/download/download_crx_util.cc @@ -12,7 +12,6 @@ #include "chrome/browser/extensions/webstore_installer.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser_finder.h" -#include "chrome/browser/ui/host_desktop.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/common/chrome_notification_types.h" #include "content/public/browser/download_item.h" @@ -45,12 +44,9 @@ ExtensionInstallPrompt* CreateExtensionInstallPrompt( } else { content::WebContents* web_contents = download_item.GetWebContents(); if (!web_contents) { - chrome::HostDesktopType active_desktop = chrome::GetActiveDesktop(); - Browser* browser = chrome::FindLastActiveWithProfile(profile, - active_desktop); + Browser* browser = chrome::FindLastActiveWithProfile(profile); if (!browser) - browser = new Browser(Browser::CreateParams(Browser::TYPE_TABBED, - profile, active_desktop)); + browser = new Browser(Browser::CreateParams(profile)); web_contents = browser->tab_strip_model()->GetActiveWebContents(); } return new ExtensionInstallPrompt(web_contents); |