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

Issue 472403002: Prevent invalidating refresh token on transient errors. (Closed)

Created:
6 years, 4 months ago by pavely
Modified:
6 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org, Nikita (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Prevent 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -16 lines) Patch
M chrome/browser/sync/profile_sync_service.cc View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_auth_test.cc View 1 3 chunks +7 lines, -9 lines 0 comments Download
M google_apis/gaia/oauth2_access_token_fetcher_impl.cc View 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
pavely
6 years, 4 months ago (2014-08-15 21:16:19 UTC) #1
Nicolas Zea
sync lgtm
6 years, 4 months ago (2014-08-15 21:23:17 UTC) #2
Roger Tawa OOO till Jul 10th
lgtm
6 years, 4 months ago (2014-08-16 02:03:24 UTC) #3
pavely
The CQ bit was checked by pavely@chromium.org
6 years, 4 months ago (2014-08-16 17:10:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pavely@chromium.org/472403002/20001
6 years, 4 months ago (2014-08-16 17:11:42 UTC) #5
commit-bot: I haz the power
6 years, 4 months ago (2014-08-16 20:47:13 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (20001) as 290158

Powered by Google App Engine
This is Rietveld 408576698