| Index: chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc
|
| diff --git a/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc b/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc
|
| index be5c295dc4682174b3286f7e351015248cec5dfc..129dd74baee368178d299ec1c8d95a98aea7e9ca 100644
|
| --- a/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc
|
| +++ b/chrome/browser/signin/mutable_profile_oauth2_token_service_delegate.cc
|
| @@ -172,6 +172,15 @@ MutableProfileOAuth2TokenServiceDelegate::CreateAccessTokenFetcher(
|
| return new OAuth2AccessTokenFetcherImpl(consumer, getter, refresh_token);
|
| }
|
|
|
| +bool MutableProfileOAuth2TokenServiceDelegate::RefreshTokenHasError(
|
| + const std::string& account_id) const {
|
| + auto it = refresh_tokens_.find(account_id);
|
| + // TODO(rogerta): should we distinguish between transient and persistent?
|
| + return it == refresh_tokens_.end()
|
| + ? false
|
| + : it->second->GetAuthStatus().state() != GoogleServiceAuthError::NONE;
|
| +}
|
| +
|
| void MutableProfileOAuth2TokenServiceDelegate::UpdateAuthError(
|
| const std::string& account_id,
|
| const GoogleServiceAuthError& error) {
|
|
|