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

Unified Diff: chrome/browser/ui/webui/signin/login_ui_service.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/ui/webui/signin/login_ui_service.cc
diff --git a/chrome/browser/ui/webui/signin/login_ui_service.cc b/chrome/browser/ui/webui/signin/login_ui_service.cc
index e6d2a98f2cda55b92738d2c7faaceba9294d86ce..2116928c2fdb5f5b2b8df34a1ce70a726d18925c 100644
--- a/chrome/browser/ui/webui/signin/login_ui_service.cc
+++ b/chrome/browser/ui/webui/signin/login_ui_service.cc
@@ -6,7 +6,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/common/url_constants.h"
@@ -36,7 +36,7 @@ void LoginUIService::ShowLoginUI() {
// Need to navigate to the settings page and display the UI.
if (profile_) {
- Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
+ Browser* browser = browser::FindLastActiveWithProfile(profile_);
if (!browser) {
browser = Browser::Create(profile_);
browser->ShowOptionsTab(chrome::kSyncSetupSubPage);

Powered by Google App Engine
This is Rietveld 408576698