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

Unified Diff: chrome/browser/background/background_mode_manager.cc

Issue 1659203002: Remove HostDesktopType from FindLastActive[WithProfile] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nullptr Created 4 years, 11 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/background/background_mode_manager.cc
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index 987c19cb6939534e6615e11d3c484c252ef3185d..235a3ce977c739d24c264ca3d883a2cf98bd85fb 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -400,8 +400,7 @@ void BackgroundModeManager::LaunchBackgroundApplication(
// static
Browser* BackgroundModeManager::GetBrowserWindowForProfile(Profile* profile) {
chrome::HostDesktopType host_desktop_type = chrome::GetActiveDesktop();
- Browser* browser =
- chrome::FindLastActiveWithProfile(profile, host_desktop_type);
+ Browser* browser = chrome::FindLastActiveWithProfile(profile);
return browser ? browser
: chrome::OpenEmptyWindow(profile, host_desktop_type);
}
« no previous file with comments | « chrome/browser/background/background_contents_service.cc ('k') | chrome/browser/download/download_crx_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698