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

Unified Diff: chrome/browser/ui/autologin_infobar_delegate.cc

Issue 7508035: Profile Notifications: Fix all TOKEN_* in sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify; move back to profile Created 9 years, 5 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
« no previous file with comments | « chrome/browser/sync/signin_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/browser/sync/signin_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698