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

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: Simplify cros code in SyncSetupHandler. Created 8 years, 7 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
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 {

Powered by Google App Engine
This is Rietveld 408576698