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

Issue 14691004: [sync] Separate sign in from sync on Desktop Chrome (Closed)

Created:
7 years, 7 months ago by Raghu Simha
Modified:
7 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, akalin, arv+watch_chromium.org, haitaol1, tim (not reviewing)
Visibility:
Public.

Description

[sync] Separate sign in from sync on Desktop Chrome As of today, when a user disables sync on desktop chrome, we automatically sign out too. With recent changes that have gone in under the covers, this is no longer necessary. It is possible for the user to choose not to sync any datatypes, and still be signed in to chrome. This patch does multiple things: - Adds a "Sync nothing" option to the drop-down menu in the advanced sync setup dialog. - Detaches sign in from sync by no longer calling SignOut when the user disables sync. - Updates the Sign in / Users section of the chrome settings page and the advanced sync settings dialog on Desktop Chrome and Chrome OS. - Eliminates the re-authentication step when the user enables sync while being already signed in. - Dismisses the advanced sync settings dialog if it is still visible when the user gets signed out in the background. - Adds new strings and modifies existing strings to account for the new UI. BUG=229860, 237051, 230348, 238938, 240436, 128692, 94814 TEST=Exercise the advanced sync settings dialog to enable and disable sync R=atwilson@chromium.org, estade@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200867

Patch Set 1 : #

Total comments: 10

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Total comments: 7

Patch Set 4 : Rebase + merge (no code changes) #

Patch Set 5 : Address feedback #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -130 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/resources/OWNERS View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 3 chunks +28 lines, -25 lines 0 comments Download
M chrome/browser/resources/sync_setup_overlay.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/sync_setup_overlay.js View 1 2 3 15 chunks +191 lines, -30 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 3 chunks +3 lines, -13 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 2 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 15 chunks +52 lines, -45 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Raghu Simha
Drew: Overall review. Tim: Owners approval for chrome/browser/sync. Evan: Owners approval for chrome/browser/resources. Evan, I've ...
7 years, 7 months ago (2013-05-08 07:06:44 UTC) #1
Raghu Simha
Ping. This is now ready for a full review.
7 years, 7 months ago (2013-05-11 02:37:10 UTC) #2
Evan Stade
OWNERS change lgtm
7 years, 7 months ago (2013-05-13 19:07:50 UTC) #3
Andrew T Wilson (Slow)
Sorry, still working on this - I'm swamped with review requests, but I got through ...
7 years, 7 months ago (2013-05-14 16:48:27 UTC) #4
Raghu Simha
Drew, PTAL. https://codereview.chromium.org/14691004/diff/73002/chrome/browser/resources/sync_setup_overlay.js File chrome/browser/resources/sync_setup_overlay.js (right): https://codereview.chromium.org/14691004/diff/73002/chrome/browser/resources/sync_setup_overlay.js#newcode46 chrome/browser/resources/sync_setup_overlay.js:46: var dataTypeBoxes_ = {}; On 2013/05/14 16:48:27, ...
7 years, 7 months ago (2013-05-15 02:09:54 UTC) #5
Andrew T Wilson (Slow)
https://codereview.chromium.org/14691004/diff/116001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/14691004/diff/116001/chrome/browser/sync/profile_sync_service.cc#newcode1920 chrome/browser/sync/profile_sync_service.cc:1920: if (!sync_initialized() && GetAuthError().state() != AuthError::NONE) { This doesn't ...
7 years, 7 months ago (2013-05-15 15:01:24 UTC) #6
Raghu Simha
Drew, thanks for the review. PTAL. https://codereview.chromium.org/14691004/diff/116001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/14691004/diff/116001/chrome/browser/sync/profile_sync_service.cc#newcode1920 chrome/browser/sync/profile_sync_service.cc:1920: if (!sync_initialized() && ...
7 years, 7 months ago (2013-05-16 02:13:20 UTC) #7
Andrew T Wilson (Slow)
I'm going to LGTM this so you're not blocked, assuming that you are able to ...
7 years, 7 months ago (2013-05-16 08:39:30 UTC) #8
Raghu Simha
Drew, your comments have been addressed by the latest patch. Let me know if you ...
7 years, 7 months ago (2013-05-17 05:14:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsimha@chromium.org/14691004/139004
7 years, 7 months ago (2013-05-17 05:14:44 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=115468
7 years, 7 months ago (2013-05-17 07:20:05 UTC) #11
Andrew T Wilson (Slow)
lgtm https://codereview.chromium.org/14691004/diff/152001/chrome/browser/ui/webui/sync_setup_handler.cc File chrome/browser/ui/webui/sync_setup_handler.cc (right): https://codereview.chromium.org/14691004/diff/152001/chrome/browser/ui/webui/sync_setup_handler.cc#newcode918 chrome/browser/ui/webui/sync_setup_handler.cc:918: CloseOverlay(); On 2013/05/17 05:14:17, rsimha wrote: > On ...
7 years, 7 months ago (2013-05-17 07:26:10 UTC) #12
Raghu Simha
7 years, 7 months ago (2013-05-17 19:17:59 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 manually as r200867 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698