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

Unified Diff: chrome/browser/background/background_mode_manager.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
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/captive_portal/captive_portal_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_mode_manager.cc
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index 235a3ce977c739d24c264ca3d883a2cf98bd85fb..cedf7f4c9b1a3129097e4451fba0ba9e2d455451 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -399,10 +399,8 @@ void BackgroundModeManager::LaunchBackgroundApplication(
// static
Browser* BackgroundModeManager::GetBrowserWindowForProfile(Profile* profile) {
- chrome::HostDesktopType host_desktop_type = chrome::GetActiveDesktop();
Browser* browser = chrome::FindLastActiveWithProfile(profile);
- return browser ? browser
- : chrome::OpenEmptyWindow(profile, host_desktop_type);
+ return browser ? browser : chrome::OpenEmptyWindow(profile);
}
bool BackgroundModeManager::IsBackgroundModeActive() {
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/captive_portal/captive_portal_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698