Commit d74846ed authored by guohui@chromium.org's avatar guohui@chromium.org

Reset gaia given name upon signout

BUG=402050

Review URL: https://codereview.chromium.org/496853002

Cr-Commit-Position: refs/heads/master@{#291419}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291419 0039d316-1c4b-4281-b951-d872f2087c98
parent 5da38956
...@@ -159,6 +159,7 @@ void GAIAInfoUpdateService::OnUsernameChanged(const std::string& username) { ...@@ -159,6 +159,7 @@ void GAIAInfoUpdateService::OnUsernameChanged(const std::string& username) {
if (username.empty()) { if (username.empty()) {
// Unset the old user's GAIA info. // Unset the old user's GAIA info.
cache.SetGAIANameOfProfileAtIndex(profile_index, base::string16()); cache.SetGAIANameOfProfileAtIndex(profile_index, base::string16());
cache.SetGAIAGivenNameOfProfileAtIndex(profile_index, base::string16());
// The profile index may have changed. // The profile index may have changed.
profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath());
if (profile_index == std::string::npos) if (profile_index == std::string::npos)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment