| Index: chrome/browser/ui/login/login_prompt.cc
|
| diff --git a/chrome/browser/ui/login/login_prompt.cc b/chrome/browser/ui/login/login_prompt.cc
|
| index 2a2c7903032b35edce149819cb97a16e096f67b6..c4c39f254fb2d6964c8ae442ddc3482c860f9ed8 100644
|
| --- a/chrome/browser/ui/login/login_prompt.cc
|
| +++ b/chrome/browser/ui/login/login_prompt.cc
|
| @@ -192,19 +192,21 @@ void LoginHandler::OnRequestCancelled() {
|
| void LoginHandler::AddObservers() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| + // This is probably OK; we need to listen to everything and we break out of
|
| + // the Observe() if we aren't handling the same auth_info().
|
| registrar_.Add(this, chrome::NOTIFICATION_AUTH_SUPPLIED,
|
| - NotificationService::AllSources());
|
| + NotificationService::AllBrowserContextsAndSources());
|
| registrar_.Add(this, chrome::NOTIFICATION_AUTH_CANCELLED,
|
| - NotificationService::AllSources());
|
| + NotificationService::AllBrowserContextsAndSources());
|
| }
|
|
|
| void LoginHandler::RemoveObservers() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| registrar_.Remove(this, chrome::NOTIFICATION_AUTH_SUPPLIED,
|
| - NotificationService::AllSources());
|
| + NotificationService::AllBrowserContextsAndSources());
|
| registrar_.Remove(this, chrome::NOTIFICATION_AUTH_CANCELLED,
|
| - NotificationService::AllSources());
|
| + NotificationService::AllBrowserContextsAndSources());
|
|
|
| DCHECK(registrar_.IsEmpty());
|
| }
|
|
|