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

Unified Diff: chrome/browser/signin/signin_manager_fake.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
Index: chrome/browser/signin/signin_manager_fake.cc
diff --git a/chrome/browser/signin/signin_manager_fake.cc b/chrome/browser/signin/signin_manager_fake.cc
index b3068ea71da2713acab518c0eb0518b06cd7bcf6..8582bd133e45f946a406c2946e89732d99c597ad 100644
--- a/chrome/browser/signin/signin_manager_fake.cc
+++ b/chrome/browser/signin/signin_manager_fake.cc
@@ -33,6 +33,10 @@ void FakeSigninManager::StartSignInWithOAuth(const std::string& username,
}
void FakeSigninManager::SignOut() {
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_GOOGLE_WILL_SIGN_OUT,
+ content::Source<Profile>(profile_),
+ content::NotificationService::NoDetails());
authenticated_username_.clear();
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,

Powered by Google App Engine
This is Rietveld 408576698