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

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

Issue 1091363002: Change ProfileDownloader to use AccountTrackerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove file committed by mistake. 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: chrome/browser/signin/fake_account_tracker_service.cc
diff --git a/chrome/browser/signin/fake_account_tracker_service.cc b/chrome/browser/signin/fake_account_tracker_service.cc
index c592b1ad0d56afcc1cfa2e43bce232d88cd9b697..e1ef564588ecf7ff6969b50a240798d1863b2249 100644
--- a/chrome/browser/signin/fake_account_tracker_service.cc
+++ b/chrome/browser/signin/fake_account_tracker_service.cc
@@ -31,15 +31,22 @@ void FakeAccountTrackerService::StartFetchingUserInfo(
}
void FakeAccountTrackerService::FakeUserInfoFetchSuccess(
- const std::string& account_id,
const std::string& email,
const std::string& gaia,
- const std::string& hosted_domain) {
+ const std::string& hosted_domain,
+ const std::string& full_name,
+ const std::string& given_name,
+ const std::string& locale,
+ const std::string& picture_url) {
base::DictionaryValue user_info;
user_info.SetString("id", gaia);
user_info.SetString("email", email);
user_info.SetString("hd", hosted_domain);
- SetAccountStateFromUserInfo(account_id, &user_info);
+ user_info.SetString("name", full_name);
+ user_info.SetString("given_name", given_name);
+ user_info.SetString("locale", locale);
+ user_info.SetString("picture", picture_url);
+ SetAccountStateFromUserInfo(PickAccountIdForAccount(gaia, email), &user_info);
}
void FakeAccountTrackerService::SendRefreshTokenAnnotationRequest(

Powered by Google App Engine
This is Rietveld 408576698