Index: components/browser_sync/browser/profile_sync_service.cc |
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc |
index 4ace5233f866735c2c165ea4f19d5ee831f13053..d10bbf9b50261510b43b6e991c505e15eb76fca5 100644 |
--- a/components/browser_sync/browser/profile_sync_service.cc |
+++ b/components/browser_sync/browser/profile_sync_service.cc |
@@ -765,7 +765,8 @@ void ProfileSyncService::OnRefreshTokenAvailable( |
void ProfileSyncService::OnRefreshTokenRevoked( |
const std::string& account_id) { |
- if (account_id == signin_->GetAccountIdToUse()) { |
+ if (account_id == signin_->GetAccountIdToUse() || |
+ !signin_->GetOriginal()->IsAuthenticated()) { |
Nicolas Zea
2015/12/02 18:57:35
Is this the right place to fix this? Why isn't the
bzanotti
2015/12/02 22:21:46
Please note that I'm not super familiar with sync
Nicolas Zea
2015/12/02 22:27:54
Yeah, I think that OnGoogleSignedOut should also b
|
access_token_.clear(); |
UpdateAuthErrorState( |
GoogleServiceAuthError(GoogleServiceAuthError::REQUEST_CANCELED)); |