Commit 0e26199c authored by mlerman's avatar mlerman Committed by Commit bot

Signing out forces the lock bit to be removed.

Since sync may cause a profile to become signed out, we cannot assume
a signing out profile is unlocked. Thus, forcibly unlock it.

BUG=426174

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

Cr-Commit-Position: refs/heads/master@{#302427}
parent ccb8c0f0
...@@ -168,6 +168,7 @@ void ChromeSigninClient::OnSignedOut() { ...@@ -168,6 +168,7 @@ void ChromeSigninClient::OnSignedOut() {
g_browser_process->profile_manager()->GetProfileInfoCache(); g_browser_process->profile_manager()->GetProfileInfoCache();
size_t index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); size_t index = cache.GetIndexOfProfileWithPath(profile_->GetPath());
cache.SetLocalAuthCredentialsOfProfileAtIndex(index, std::string()); cache.SetLocalAuthCredentialsOfProfileAtIndex(index, std::string());
cache.SetProfileSigninRequiredAtIndex(index, false);
} }
net::URLRequestContextGetter* ChromeSigninClient::GetURLRequestContext() { net::URLRequestContextGetter* ChromeSigninClient::GetURLRequestContext() {
......
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