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

Unified Diff: chrome/browser/services/gcm/fake_signin_manager.cc

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 years, 4 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/profiles/gaia_info_update_service.cc ('k') | chrome/browser/signin/chrome_signin_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/fake_signin_manager.cc
diff --git a/chrome/browser/services/gcm/fake_signin_manager.cc b/chrome/browser/services/gcm/fake_signin_manager.cc
index d4b0920b7ae64be79820ac1177d6ed62c10c24d0..dea05cecf2d864e843cc021a17b2f013a267f2b1 100644
--- a/chrome/browser/services/gcm/fake_signin_manager.cc
+++ b/chrome/browser/services/gcm/fake_signin_manager.cc
@@ -38,15 +38,18 @@ void FakeSigninManager::SignIn(const std::string& username) {
SetAuthenticatedUsername(username);
FOR_EACH_OBSERVER(Observer,
observer_list_,
- GoogleSigninSucceeded(username, std::string()));
+ GoogleSigninSucceeded(username, username, std::string()));
}
void FakeSigninManager::SignOut(
signin_metrics::ProfileSignout signout_source_metric) {
+ const std::string account_id = GetAuthenticatedAccountId();
const std::string username = GetAuthenticatedUsername();
clear_authenticated_username();
profile_->GetPrefs()->ClearPref(prefs::kGoogleServicesUsername);
- FOR_EACH_OBSERVER(Observer, observer_list_, GoogleSignedOut(username));
+ FOR_EACH_OBSERVER(Observer,
+ observer_list_,
+ GoogleSignedOut(account_id, username));
}
// static
« no previous file with comments | « chrome/browser/profiles/gaia_info_update_service.cc ('k') | chrome/browser/signin/chrome_signin_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698