diff options
Diffstat (limited to 'chromium/components/signin/core/browser/account_reconcilor.cc')
-rw-r--r-- | chromium/components/signin/core/browser/account_reconcilor.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/chromium/components/signin/core/browser/account_reconcilor.cc b/chromium/components/signin/core/browser/account_reconcilor.cc index 7c9c7f2333e..1a924082d25 100644 --- a/chromium/components/signin/core/browser/account_reconcilor.cc +++ b/chromium/components/signin/core/browser/account_reconcilor.cc @@ -280,15 +280,23 @@ void AccountReconcilor::StartReconcile() { is_reconcile_started_ = true; error_during_last_reconcile_ = false; + // ListAccounts() also gets signed out accounts but this class doesn't use + // them. + std::vector<gaia::ListedAccount> signed_out_accounts; + // Rely on the GCMS to manage calls to and responses from ListAccounts. - if (cookie_manager_service_->ListAccounts(&gaia_accounts_)) { + if (cookie_manager_service_->ListAccounts(&gaia_accounts_, + &signed_out_accounts)) { OnGaiaAccountsInCookieUpdated( - gaia_accounts_, GoogleServiceAuthError(GoogleServiceAuthError::NONE)); + gaia_accounts_, + signed_out_accounts, + GoogleServiceAuthError(GoogleServiceAuthError::NONE)); } } void AccountReconcilor::OnGaiaAccountsInCookieUpdated( const std::vector<gaia::ListedAccount>& accounts, + const std::vector<gaia::ListedAccount>& signed_out_accounts, const GoogleServiceAuthError& error) { VLOG(1) << "AccountReconcilor::OnGaiaAccountsInCookieUpdated: " << "CookieJar " << accounts.size() << " accounts, " |