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

Unified Diff: chrome/browser/signin/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/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/profile_identity_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/fake_signin_manager.cc
diff --git a/chrome/browser/signin/fake_signin_manager.cc b/chrome/browser/signin/fake_signin_manager.cc
index 68decb9dacd62682f5a8f325ba8eeb4d8ffa18a8..555df846add54ca0c820c3a1e7c2def48895e665 100644
--- a/chrome/browser/signin/fake_signin_manager.cc
+++ b/chrome/browser/signin/fake_signin_manager.cc
@@ -63,7 +63,9 @@ void FakeSigninManager::CompletePendingSignin() {
set_auth_in_progress(std::string());
FOR_EACH_OBSERVER(Observer,
observer_list_,
- GoogleSigninSucceeded(authenticated_username_, password_));
+ GoogleSigninSucceeded(authenticated_username_,
+ authenticated_username_,
+ password_));
}
void FakeSigninManager::AddMergeSessionObserver(
@@ -101,11 +103,12 @@ void FakeSigninManager::SignOut(
return;
set_auth_in_progress(std::string());
set_password(std::string());
+ const std::string account_id = GetAuthenticatedAccountId();
const std::string username = authenticated_username_;
authenticated_username_.clear();
FOR_EACH_OBSERVER(SigninManagerBase::Observer, observer_list_,
- GoogleSignedOut(username));
+ GoogleSignedOut(account_id, username));
}
#endif // !defined (OS_CHROMEOS)
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/profile_identity_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698