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

Unified Diff: chrome/browser/signin/token_service.cc

Issue 10496010: Updated SigninManager and TokenService to generate notifications at signout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment per review. Created 8 years, 6 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/signin/signin_manager.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/token_service.cc
diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc
index c81579616e5c797b3b324aeeaf9bb94a40158c98..010cf0180cee30ab4d8a297e6dee55290e83bafd 100644
--- a/chrome/browser/signin/token_service.cc
+++ b/chrome/browser/signin/token_service.cc
@@ -157,6 +157,11 @@ void TokenService::EraseTokensFromDB() {
}
if (web_data_service_.get())
web_data_service_->RemoveAllTokens();
+
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_TOKENS_CLEARED,
+ content::Source<TokenService>(this),
+ content::NotificationService::NoDetails());
}
bool TokenService::TokensLoadedFromDB() const {
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698