Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4203)

Unified Diff: chrome/browser/invalidation/ticl_invalidation_service.cc

Issue 21140004: Refresh access tokens for TiclInvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/invalidation/ticl_invalidation_service.cc
diff --git a/chrome/browser/invalidation/ticl_invalidation_service.cc b/chrome/browser/invalidation/ticl_invalidation_service.cc
index ee2da37e8c620d76aadbbbd59df21dad82b69026..c47dfb77074eaa82f89ea3ef598f497e1bfd3465 100644
--- a/chrome/browser/invalidation/ticl_invalidation_service.cc
+++ b/chrome/browser/invalidation/ticl_invalidation_service.cc
@@ -258,7 +258,13 @@ void TiclInvalidationService::OnGetTokenFailure(
void TiclInvalidationService::OnInvalidatorStateChange(
syncer::InvalidatorState state) {
- invalidator_registrar_->UpdateInvalidatorState(state);
+ if (state == syncer::INVALIDATION_CREDENTIALS_REJECTED) {
+ // This might not be a real auth error. Our access tokens expire
tim (not reviewing) 2013/07/30 21:01:00 Maybe instead of "real", say "This may simply be
+ // eventually. Sometimes all we need to do is fetch a fresh one.
+ RequestAccessToken();
+ } else {
+ invalidator_registrar_->UpdateInvalidatorState(state);
+ }
}
void TiclInvalidationService::OnIncomingInvalidation(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698