summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/chrome_download_manager_delegate.cc4
-rw-r--r--chrome/browser/download/download_crx_util.cc8
2 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index 8e1c8e1..a142d12 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -36,7 +36,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/ui/browser_tabstrip.h"
-#include "chrome/browser/ui/host_desktop.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/feature_switch.h"
#include "chrome/common/extensions/user_script.h"
@@ -266,8 +265,7 @@ WebContents* ChromeDownloadManagerDelegate::
#else
// Start the download in the last active browser. This is not ideal but better
// than fully hiding the download from the user.
- Browser* last_active = chrome::FindLastActiveWithProfile(profile_,
- chrome::GetActiveDesktop());
+ Browser* last_active = chrome::FindLastActiveWithProfile(profile_);
return last_active ? chrome::GetActiveWebContents(last_active) : NULL;
#endif
}
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);