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..093c66290ec2ffccf7f245abb651899a3214701d 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,13 @@ 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); |
+ return it == refresh_tokens_.end() ? false |
+ : IsError(it->second->GetAuthStatus()); |
+} |
+ |
void MutableProfileOAuth2TokenServiceDelegate::UpdateAuthError( |
const std::string& account_id, |
const GoogleServiceAuthError& error) { |