| Index: chrome/browser/sync/profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
|
| index 955a4b6eb90c57232cd69c6f1f22a15fef2fbb48..07691854c374e3602534b4e182e54a0a10ec3e06 100644
|
| --- a/chrome/browser/sync/profile_sync_service.cc
|
| +++ b/chrome/browser/sync/profile_sync_service.cc
|
| @@ -761,6 +761,8 @@ void ProfileSyncService::OnGetTokenFailure(
|
| last_get_token_error_ = error;
|
| switch (error.state()) {
|
| case GoogleServiceAuthError::CONNECTION_FAILED:
|
| + case GoogleServiceAuthError::REQUEST_CANCELED:
|
| + case GoogleServiceAuthError::SERVICE_ERROR:
|
| case GoogleServiceAuthError::SERVICE_UNAVAILABLE: {
|
| // Transient error. Retry after some time.
|
| request_access_token_backoff_.InformOfRequest(false);
|
| @@ -774,7 +776,6 @@ void ProfileSyncService::OnGetTokenFailure(
|
| NotifyObservers();
|
| break;
|
| }
|
| - case GoogleServiceAuthError::SERVICE_ERROR:
|
| case GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS: {
|
| if (!sync_prefs_.SyncHasAuthError()) {
|
| sync_prefs_.SetSyncAuthError(true);
|
| @@ -785,6 +786,9 @@ void ProfileSyncService::OnGetTokenFailure(
|
| // Fallthrough.
|
| }
|
| default: {
|
| + if (error.state() != GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS) {
|
| + LOG(ERROR) << "Unexpected persistent error: " << error.ToString();
|
| + }
|
| // Show error to user.
|
| UpdateAuthErrorState(error);
|
| }
|
|
|