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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.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/ntp/ntp_login_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
index 9c51c9d51b26a8c3763535694d83f00584d6c351..2f79470484e76309e6f298d92fae5b80385b292f 100644
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
@@ -23,7 +23,7 @@
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.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/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
@@ -127,7 +127,7 @@ void NTPLoginHandler::HandleShowSyncLoginUI(const ListValue* args) {
std::string username = profile->GetPrefs()->GetString(
prefs::kGoogleServicesUsername);
content::WebContents* web_contents = web_ui()->GetWebContents();
- Browser* browser = BrowserList::FindBrowserWithWebContents(web_contents);
+ Browser* browser = browser::FindBrowserWithWebContents(web_contents);
if (!browser)
return;
@@ -185,7 +185,7 @@ void NTPLoginHandler::HandleLoginMessageSeen(const ListValue* args) {
void NTPLoginHandler::HandleShowAdvancedLoginUI(const ListValue* args) {
Browser* browser =
- BrowserList::FindBrowserWithWebContents(web_ui()->GetWebContents());
+ browser::FindBrowserWithWebContents(web_ui()->GetWebContents());
if (browser)
browser->ShowSyncSetup(SyncPromoUI::SOURCE_NTP_LINK);
}

Powered by Google App Engine
This is Rietveld 408576698