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

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

Issue 11312124: Send a notification when the signed-in user is about to sign out. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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/signin/signin_manager_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_manager.cc
diff --git a/chrome/browser/signin/signin_manager.cc b/chrome/browser/signin/signin_manager.cc
index 581414dabfc3fdee2d3cc7114ce1b2d95b60f4ad..0ed0500d64a163246d9cb7529863f852f25d26ef 100644
--- a/chrome/browser/signin/signin_manager.cc
+++ b/chrome/browser/signin/signin_manager.cc
@@ -361,6 +361,10 @@ void SigninManager::SignOut() {
GoogleServiceSignoutDetails details(authenticated_username_);
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_GOOGLE_WILL_SIGN_OUT,
+ content::Source<Profile>(profile_),
+ content::Details<const GoogleServiceSignoutDetails>(&details));
Andrew T Wilson (Slow) 2012/11/08 13:43:54 I'm not a huge fan of having this extra notificati
ClearTransientSigninData();
authenticated_username_.clear();
profile_->GetPrefs()->ClearPref(prefs::kGoogleServicesUsername);
« no previous file with comments | « no previous file | chrome/browser/signin/signin_manager_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698