Commit 090c49d7 authored by bzanotti's avatar bzanotti Committed by Commit bot

Fix FakeSigninManager::SignOut

FakeSigninManager::SignOut was never updated to clear the account id on
SignOut. This result in calls to FakeSigninManager::IsAuthenticated
returning true after even after a SignOut.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#319077}
parent 2ed940b3
...@@ -89,8 +89,8 @@ void FakeSigninManager::SignOut( ...@@ -89,8 +89,8 @@ void FakeSigninManager::SignOut(
set_auth_in_progress(std::string()); set_auth_in_progress(std::string());
set_password(std::string()); set_password(std::string());
const std::string account_id = GetAuthenticatedAccountId(); const std::string account_id = GetAuthenticatedAccountId();
const std::string username = authenticated_username_; const std::string username = GetAuthenticatedUsername();
authenticated_username_.clear(); ClearAuthenticatedUsername();
FOR_EACH_OBSERVER(SigninManagerBase::Observer, observer_list_, FOR_EACH_OBSERVER(SigninManagerBase::Observer, observer_list_,
GoogleSignedOut(account_id, username)); GoogleSignedOut(account_id, username));
......
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