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

Issue 10335015: Treat SyncCredentialsLost as an auth error (Closed)

Created:
8 years, 7 months ago by Andrew T Wilson (Slow)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

Treat SyncCredentialsLost as an auth error Break up AreCredentialsAvailable() into two routines, IsSyncEnabledAndLoggedIn() and IsSyncTokenAvailable(). ProfileSyncService now will start up the sync backend even if there's no sync token available. GetCredentials() will make up fake/invalid tokens for the sync backend to use, which will eventually yield an auth error for the user. BUG=121755 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137359

Patch Set 1 #

Total comments: 4

Patch Set 2 : git try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -67 lines) Patch
M chrome/browser/signin/signin_tracker.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_tracker_unittest.cc View 5 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 9 chunks +42 lines, -45 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/browser_options_handler2.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 9 chunks +27 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Andrew T Wilson (Slow)
Nicolas, PTAL. Tim, FYI - not sure if you want to review also, since this ...
8 years, 7 months ago (2012-05-15 23:02:53 UTC) #1
Nicolas Zea
http://codereview.chromium.org/10335015/diff/1/chrome/browser/sync/profile_sync_service.h File chrome/browser/sync/profile_sync_service.h (right): http://codereview.chromium.org/10335015/diff/1/chrome/browser/sync/profile_sync_service.h#newcode184 chrome/browser/sync/profile_sync_service.h:184: // Virtual to enable mocking in tests. Mention that ...
8 years, 7 months ago (2012-05-15 23:39:04 UTC) #2
Andrew T Wilson (Slow)
jhawkins: PTAL at ui/webui http://codereview.chromium.org/10335015/diff/1/chrome/browser/sync/profile_sync_service.h File chrome/browser/sync/profile_sync_service.h (right): http://codereview.chromium.org/10335015/diff/1/chrome/browser/sync/profile_sync_service.h#newcode184 chrome/browser/sync/profile_sync_service.h:184: // Virtual to enable mocking ...
8 years, 7 months ago (2012-05-16 01:05:15 UTC) #3
Nicolas Zea
sync LGTM
8 years, 7 months ago (2012-05-16 01:07:28 UTC) #4
James Hawkins
lgtm
8 years, 7 months ago (2012-05-16 02:43:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10335015/4003
8 years, 7 months ago (2012-05-16 02:52:01 UTC) #6
commit-bot: I haz the power
8 years, 7 months ago (2012-05-16 04:10:53 UTC) #7
Change committed as 137359

Powered by Google App Engine
This is Rietveld 408576698