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

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

Issue 10391158: Moves methods for finding browsers to browser_finder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fixs Created 8 years, 7 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 0a3bdd83460062c57e50da6ef3a3a0afd1bd7748..785994c88174b5b1416d99d8e078c13eb8ef9db1 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -23,6 +23,8 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/status_icons/status_icon.h"
#include "chrome/browser/status_icons/status_tray.h"
+#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_notification_types.h"
@@ -85,10 +87,10 @@ void BackgroundModeManager::BackgroundModeData::ExecuteCommand(int item) {
}
Browser* BackgroundModeManager::BackgroundModeData::GetBrowserWindow() {
- Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
+ Browser* browser = browser::FindLastActiveWithProfile(profile_);
if (!browser) {
Browser::OpenEmptyWindow(profile_);
- browser = BrowserList::GetLastActiveWithProfile(profile_);
+ browser = browser::FindLastActiveWithProfile(profile_);
}
return browser;
}

Powered by Google App Engine
This is Rietveld 408576698