| 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 f868ce175cf5f399359295328366569d0febee59..da1caf36049a0e39af28b3bbbaeeadb7a4dbfeae 100644
|
| --- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc
|
| @@ -78,7 +78,8 @@ void NTPLoginHandler::HandleShowSyncLoginUI(const ListValue* args) {
|
| }
|
| } else if (args->GetSize() == 4) {
|
| // The user is signed in, show the profiles menu.
|
| - Browser* browser = GetBrowser();
|
| + Browser* browser =
|
| + BrowserList::FindBrowserWithTabContents(web_ui_->tab_contents());
|
| if (!browser)
|
| return;
|
| double x = 0;
|
| @@ -135,12 +136,3 @@ bool NTPLoginHandler::ShouldShow(Profile* profile) {
|
| return profile->GetOriginalProfile()->IsSyncAccessible();
|
| #endif
|
| }
|
| -
|
| -Browser* NTPLoginHandler::GetBrowser() {
|
| - for (TabContentsIterator it; !it.done(); ++it) {
|
| - TabContents* tab = it->tab_contents();
|
| - if (tab == web_ui_->tab_contents())
|
| - return it.browser();
|
| - }
|
| - return NULL;
|
| -}
|
|
|