Commit 5cf28ab7 authored by rogerta@chromium.org's avatar rogerta@chromium.org

Logout all accounts from cookie jar when disconnecting from chrome.

BUG=348531

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269672 0039d316-1c4b-4281-b951-d872f2087c98
parent ae3da717
...@@ -178,6 +178,8 @@ TEST_F(AccountReconcilorTest, SigninManagerRegistration) { ...@@ -178,6 +178,8 @@ TEST_F(AccountReconcilorTest, SigninManagerRegistration) {
signin_manager()->OnExternalSigninCompleted(kTestEmail); signin_manager()->OnExternalSigninCompleted(kTestEmail);
ASSERT_TRUE(reconcilor->IsRegisteredWithTokenService()); ASSERT_TRUE(reconcilor->IsRegisteredWithTokenService());
EXPECT_CALL(*GetMockReconcilor(), PerformLogoutAllAccountsAction());
signin_manager()->SignOut(); signin_manager()->SignOut();
ASSERT_FALSE(reconcilor->IsRegisteredWithTokenService()); ASSERT_FALSE(reconcilor->IsRegisteredWithTokenService());
} }
......
...@@ -347,8 +347,11 @@ void AccountReconcilor::GoogleSigninSucceeded(const std::string& username, ...@@ -347,8 +347,11 @@ void AccountReconcilor::GoogleSigninSucceeded(const std::string& username,
void AccountReconcilor::GoogleSignedOut(const std::string& username) { void AccountReconcilor::GoogleSignedOut(const std::string& username) {
VLOG(1) << "AccountReconcilor::GoogleSignedOut: signed out"; VLOG(1) << "AccountReconcilor::GoogleSignedOut: signed out";
gaia_fetcher_.reset();
AbortReconcile();
UnregisterWithTokenService(); UnregisterWithTokenService();
UnregisterForCookieChanges(); UnregisterForCookieChanges();
PerformLogoutAllAccountsAction();
} }
void AccountReconcilor::PerformMergeAction(const std::string& account_id) { void AccountReconcilor::PerformMergeAction(const std::string& account_id) {
......
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