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

Unified Diff: chrome/browser/sync/signin_manager.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 | « no previous file | chrome/browser/ui/autologin_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/signin_manager.cc
diff --git a/chrome/browser/sync/signin_manager.cc b/chrome/browser/sync/signin_manager.cc
index 2c06078e3242f3e58fd35b921d5c133ebed200b6..00e3246387b982096be273dd455e699d7c90210d 100644
--- a/chrome/browser/sync/signin_manager.cc
+++ b/chrome/browser/sync/signin_manager.cc
@@ -48,12 +48,13 @@ bool SigninManager::IsInitialized() const {
void SigninManager::CleanupNotificationRegistration() {
#if !defined(OS_CHROMEOS)
+ Source<TokenService> token_service(profile_->GetTokenService());
if (registrar_.IsRegistered(this,
chrome::NOTIFICATION_TOKEN_AVAILABLE,
- NotificationService::AllSources())) {
+ token_service)) {
registrar_.Remove(this,
chrome::NOTIFICATION_TOKEN_AVAILABLE,
- NotificationService::AllSources());
+ token_service);
}
#endif
}
@@ -114,7 +115,7 @@ void SigninManager::StartSignIn(const std::string& username,
if (profile_->GetPrefs()->GetBoolean(prefs::kAutologinEnabled)) {
registrar_.Add(this,
chrome::NOTIFICATION_TOKEN_AVAILABLE,
- NotificationService::AllSources());
+ Source<TokenService>(profile_->GetTokenService()));
}
#endif
}
« no previous file with comments | « no previous file | chrome/browser/ui/autologin_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698