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

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

Issue 1117453002: Add gaia_id to ProfileInfoCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 7 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.h ('k') | chrome/browser/signin/signin_global_error_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/chrome_signin_client.cc
diff --git a/chrome/browser/signin/chrome_signin_client.cc b/chrome/browser/signin/chrome_signin_client.cc
index c4b839a96336a487ce0d02c2ca497b8e1e48d1df..a98dd89930a065fbedb05edce03982d03b268889 100644
--- a/chrome/browser/signin/chrome_signin_client.cc
+++ b/chrome/browser/signin/chrome_signin_client.cc
@@ -137,7 +137,7 @@ void ChromeSigninClient::OnSignedOut() {
return;
cache.SetLocalAuthCredentialsOfProfileAtIndex(index, std::string());
- cache.SetUserNameOfProfileAtIndex(index, base::string16());
+ cache.SetAuthInfoOfProfileAtIndex(index, std::string(), base::string16());
cache.SetProfileSigninRequiredAtIndex(index, false);
}
@@ -195,13 +195,15 @@ ChromeSigninClient::AddCookieChangedCallback(
}
void ChromeSigninClient::OnSignedIn(const std::string& account_id,
+ const std::string& gaia_id,
const std::string& username,
const std::string& password) {
ProfileManager* profile_manager = g_browser_process->profile_manager();
ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
size_t index = cache.GetIndexOfProfileWithPath(profile_->GetPath());
if (index != std::string::npos) {
- cache.SetUserNameOfProfileAtIndex(index, base::UTF8ToUTF16(username));
+ cache.SetAuthInfoOfProfileAtIndex(index, gaia_id,
+ base::UTF8ToUTF16(username));
ProfileMetrics::UpdateReportedProfilesStatistics(profile_manager);
}
}
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.h ('k') | chrome/browser/signin/signin_global_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698