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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.cc

Issue 11434074: browser: Move FindBrowserWithWebContents() into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 94af9f3a0cc9a4df103f8421fec9b025c2f9175b..e182bd6ca28f3c95f67983a204c7df7a374097b6 100644
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
@@ -129,7 +129,7 @@ void NTPLoginHandler::HandleShowSyncLoginUI(const ListValue* args) {
std::string username = profile->GetPrefs()->GetString(
prefs::kGoogleServicesUsername);
content::WebContents* web_contents = web_ui()->GetWebContents();
- Browser* browser = browser::FindBrowserWithWebContents(web_contents);
+ Browser* browser = chrome::FindBrowserWithWebContents(web_contents);
if (!browser)
return;
@@ -186,7 +186,7 @@ void NTPLoginHandler::HandleLoginMessageSeen(const ListValue* args) {
void NTPLoginHandler::HandleShowAdvancedLoginUI(const ListValue* args) {
Browser* browser =
- browser::FindBrowserWithWebContents(web_ui()->GetWebContents());
+ chrome::FindBrowserWithWebContents(web_ui()->GetWebContents());
if (browser)
chrome::ShowSyncSetup(browser, SyncPromoUI::SOURCE_NTP_LINK);
}
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698