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

Unified Diff: components/signin/core/browser/account_tracker_service.cc

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: rebased Created 5 years, 8 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: components/signin/core/browser/account_tracker_service.cc
diff --git a/components/signin/core/browser/account_tracker_service.cc b/components/signin/core/browser/account_tracker_service.cc
index 2da5a98656f6a141fe48a960822442321be68d20..fc81b26be0d76676720593eda20d7fe937279486 100644
--- a/components/signin/core/browser/account_tracker_service.cc
+++ b/components/signin/core/browser/account_tracker_service.cc
@@ -584,12 +584,8 @@ std::string AccountTrackerService::PickAccountIdForAccount(
}
}
-void AccountTrackerService::SeedAccountInfo(const std::string& gaia,
- const std::string& email) {
- DVLOG(1) << "AccountTrackerService::SeedAccountInfo"
- << " gaia_id=" << gaia
- << " email=" << email;
-
+std::string AccountTrackerService::SeedAccountInfo(const std::string& gaia,
+ const std::string& email) {
DCHECK(!gaia.empty());
DCHECK(!email.empty());
const std::string account_id = PickAccountIdForAccount(gaia, email);
@@ -600,4 +596,11 @@ void AccountTrackerService::SeedAccountInfo(const std::string& gaia,
state.info.gaia = gaia;
state.info.email = email;
SaveToPrefs(state);
+
+ DVLOG(1) << "AccountTrackerService::SeedAccountInfo"
+ << " account_id=" << account_id
+ << " gaia_id=" << gaia
+ << " email=" << email;
+
+ return account_id;
Mike Lerman 2015/04/08 14:45:27 Thought: Is it worth setting a class variable in t
Roger Tawa OOO till Jul 10th 2015/04/08 20:24:21 I don't think it's worth it. SeedAccountInfo is c
}

Powered by Google App Engine
This is Rietveld 408576698