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

Issue 23005016: [sync] Force re-auth during sync setup if Oauth2 token is unavailable (Closed)

Created:
7 years, 4 months ago by Raghu Simha
Modified:
7 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[sync] Force re-auth during sync setup if Oauth2 token is unavailable If an enterprise user disables sync via a dashboard clear, and goes on to re-enable sync at a later time, set up can fail due to an expired or missing Oauth2 token. This patch updates SyncSetupHandler::OpenSyncSetup to first check if an auth token is available for sync, and if not, force a re-auth. R=atwilson TBR=fgorski,rogerta BUG=276650 TEST=Disable sync for an enterprise user, exit chrome, delete "Web Data*" from the profile dir, restart chrome, and set up sync. Re-auth must be forced in this case. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219146

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes to OAuth2TokenService and OneClickSigninHelper #

Total comments: 2

Patch Set 3 : More feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -3 lines) Patch
M chrome/browser/signin/profile_oauth2_token_service.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Raghu Simha
Drew, please review. Thanks.
7 years, 4 months ago (2013-08-20 22:15:31 UTC) #1
Andrew T Wilson (Slow)
https://codereview.chromium.org/23005016/diff/1/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://codereview.chromium.org/23005016/diff/1/chrome/browser/ui/webui/sync_setup_handler.cc#newcode860 chrome/browser/ui/webui/sync_setup_handler.cc:860: (service && !service->IsOAuthRefreshTokenAvailable())) { I think this probably isn't ...
7 years, 4 months ago (2013-08-21 08:30:46 UTC) #2
Raghu Simha
+fgorski, rogerta. Drew: Overall review again, please. Thanks! Filip: PTAL at profile_oauth2_token_service.cc. Roger: PTAL at ...
7 years, 4 months ago (2013-08-22 00:05:12 UTC) #3
Andrew T Wilson (Slow)
LGTM with one suggestion. https://codereview.chromium.org/23005016/diff/24001/chrome/browser/signin/profile_oauth2_token_service.cc File chrome/browser/signin/profile_oauth2_token_service.cc (right): https://codereview.chromium.org/23005016/diff/24001/chrome/browser/signin/profile_oauth2_token_service.cc#newcode159 chrome/browser/signin/profile_oauth2_token_service.cc:159: if (GetRefreshToken().empty()) { I think ...
7 years, 4 months ago (2013-08-22 10:29:09 UTC) #4
Raghu Simha
Ping. fgorski, rogerta: Please let me know if you have any objections to this being ...
7 years, 4 months ago (2013-08-22 17:48:50 UTC) #5
Raghu Simha
TBR Filip and Roger, since they're both on vacation this week.
7 years, 4 months ago (2013-08-22 18:10:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsimha@chromium.org/23005016/29001
7 years, 4 months ago (2013-08-22 18:15:11 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-22 23:39:46 UTC) #8
Message was sent while issue was closed.
Change committed as 219146

Powered by Google App Engine
This is Rietveld 408576698