DescriptionPrevent invalidating refresh token on transient errors.
Problem:
When access token request fails with unexpected errors those get
translated to "invalid credentials". In response auth_sync_observer.cc
marks refresh token as invalid which prevents offline auth on next startup.
oauth2_access_token_fetcher_impl.cc:
- Handle all 5xx http codes as transient errors.
- Log error for unexpected codes.
profile_sync_service.cc:
- handle REQUEST_CANCELLED and SERVICE_ERROR as transient error, retry instead of
notifying observers.
- Log error for unexpected auth errors.
BUG=394939
R=rogerta@chromium.org,zea@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290158
Patch Set 1 #Patch Set 2 : Fix integration tests #
Messages
Total messages: 6 (0 generated)
|