| Index: chrome/browser/ui/autologin_infobar_delegate.cc
|
| diff --git a/chrome/browser/ui/autologin_infobar_delegate.cc b/chrome/browser/ui/autologin_infobar_delegate.cc
|
| index 15b9a5aabae5ab04f4e55b64f79d19569589fa35..9aaa66c82e372670dfdf2f112ab1ded9cf36156e 100644
|
| --- a/chrome/browser/ui/autologin_infobar_delegate.cc
|
| +++ b/chrome/browser/ui/autologin_infobar_delegate.cc
|
| @@ -70,13 +70,14 @@ AutoLoginRedirector::AutoLoginRedirector(
|
| // to be re-issued. The token service guarantees to fire either
|
| // TOKEN_AVAILABLE or TOKEN_REQUEST_FAILED, so we will get at least one or
|
| // the other, allow AutoLoginRedirector to delete itself correctly.
|
| + TokenService* service = tab_contents_wrapper_->profile()->GetTokenService();
|
| registrar_.Add(this,
|
| chrome::NOTIFICATION_TOKEN_AVAILABLE,
|
| - NotificationService::AllSources());
|
| + Source<TokenService>(service));
|
| registrar_.Add(this,
|
| chrome::NOTIFICATION_TOKEN_REQUEST_FAILED,
|
| - NotificationService::AllSources());
|
| - tab_contents_wrapper_->profile()->GetTokenService()->StartFetchingTokens();
|
| + Source<TokenService>(service));
|
| + service->StartFetchingTokens();
|
| }
|
|
|
| AutoLoginRedirector::~AutoLoginRedirector() {
|
|
|