Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Issue 1134002: Added "Customize Sync" dialog, removed "Merge and Sync" step. (Closed)

Created:
10 years, 9 months ago by Dan Tasse
Modified:
9 years, 7 months ago
CC:
ncarter (slow), finnur+watch_chromium.org, idana, ben+cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing), chromium-reviews, jam+cc_chromium.org, John Grabowski, Erik does not do reviews, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, kuchhal, darin-cc_chromium.org, native-client-reviews_googlegroups.com, tfarina (gmail-do not use)
Visibility:
Public.

Description

The "Customize Sync" dialog will let users select to sync or not sync each data type (bookmarks, preferences, etc). The Customize Sync dialog appears if you click a button on the gaia login or the Options->Personal Stuff tab. This button only appears if you've set the --enable-sync-preferences or --enable-sync-autofill command-line flag. On the Gaia login, the Customize Sync button grays out when you click 'sign in'. If the "customize sync" dialog is open, it closes when you click "cancel" on the Gaia login, and it accepts when you log in to Gaia. Removed "Merge and Sync" from the login sequence. Also deleted the 'merge_allowed' parameter from DataTypeController and its subclasses. Fixed strings so they all refer to "Google Chrome/Chromium sync" instead of "Bookmark sync". BUG=34209, 27259 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43256

Patch Set 1 #

Patch Set 2 : Added a "customize sync" dialog to allow users to pick which datatypes they want to sync #

Patch Set 3 : Reverting a file I accidentally edited before #

Patch Set 4 : Cleanup, mostly strings, so we have "Google Chrome/Chromium sync" instead of "Bookmark sync" #

Patch Set 5 : Fixed unit tests and lint errors #

Patch Set 6 : Synced and updated this patch #

Total comments: 17

Patch Set 7 : Updates based on skrul's and akalin's code review comments #

Patch Set 8 : Now calls DataTypeManager::Configure and saves your choices to the PrefService #

Total comments: 46

Patch Set 9 : Lint fixes #

Total comments: 9

Patch Set 10 : lint fixes and updates to ThemeDataTypeController #

Total comments: 15

Patch Set 11 : fixing unit tests #

Patch Set 12 : HTML style fixes and initializing variables in CustomizeSyncWindowView #

Patch Set 13 : ifdefs to keep this all on windows until mac/linux work is done #

Patch Set 14 : mostly ifdefs so this will compile on all platforms #

Patch Set 15 : Compiles and passes trybots on linux now. #

Patch Set 16 : Works on linux. Works on windows. Seems like it should work on mac. #

Patch Set 17 : passes trybots, ready to commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+690 lines, -500 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +68 lines, -42 lines 0 comments Download
M chrome/app/resources/locale_settings.grd View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.h View 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.cc View 1 2 3 4 5 6 7 8 9 7 chunks +6 lines, -21 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller.cc View 1 2 3 4 5 6 7 8 9 5 chunks +1 line, -15 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 9 chunks +11 lines, -34 lines 0 comments Download
M chrome/browser/sync/glue/data_type_controller.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/data_type_controller_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl_unittest.cc View 1 2 3 4 5 6 7 7 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller_unittest.cc View 1 2 3 4 5 6 6 chunks +7 lines, -25 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.cc View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller_unittest.cc View 6 chunks +7 lines, -25 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.cc View 2 3 4 5 6 7 8 9 4 chunks +3 lines, -16 lines 0 comments Download
M chrome/browser/sync/profile_sync_factory_impl_unittest.cc View 8 9 10 1 chunk +28 lines, -18 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +32 lines, -9 lines 0 comments Download
M chrome/browser/sync/resources/gaia_login.html View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +19 lines, -2 lines 0 comments Download
D chrome/browser/sync/resources/merge_and_sync.html View 1 chunk +0 lines, -95 lines 0 comments Download
M chrome/browser/sync/resources/setup_flow.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -16 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +23 lines, -6 lines 0 comments Download
M chrome/browser/sync/sync_setup_flow.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +39 lines, -33 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard.cc View 1 2 3 4 chunks +7 lines, -22 lines 0 comments Download
M chrome/browser/sync/sync_setup_wizard_unittest.cc View 1 2 3 4 10 chunks +3 lines, -45 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_mac.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_mac_unittest.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/views/options/content_page_view.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/options/content_page_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +46 lines, -4 lines 0 comments Download
A chrome/browser/views/options/customize_sync_window_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/views/options/customize_sync_window_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +231 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Dan Tasse
'lo Steve, Fred, Tim! Here it is, big UI CL #1. To help break up ...
10 years, 9 months ago (2010-03-24 00:28:03 UTC) #1
skrul
LGTM with a few nits http://codereview.chromium.org/1134002/diff/11001/12004 File chrome/browser/sync/glue/autofill_data_type_controller.cc (right): http://codereview.chromium.org/1134002/diff/11001/12004#newcode107 chrome/browser/sync/glue/autofill_data_type_controller.cc:107: bool chrome_has_nodes = false; ...
10 years, 9 months ago (2010-03-24 21:47:53 UTC) #2
Dan Tasse
Thanks! http://codereview.chromium.org/1134002/diff/11001/12004 File chrome/browser/sync/glue/autofill_data_type_controller.cc (right): http://codereview.chromium.org/1134002/diff/11001/12004#newcode107 chrome/browser/sync/glue/autofill_data_type_controller.cc:107: bool chrome_has_nodes = false; On 2010/03/24 21:47:53, skrul ...
10 years, 9 months ago (2010-03-24 21:59:05 UTC) #3
akalin
http://codereview.chromium.org/1134002/diff/11001/12018 File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/1134002/diff/11001/12018#newcode417 chrome/browser/sync/profile_sync_service.cc:417: if (bootstrap_sync_authentication_) keep braces http://codereview.chromium.org/1134002/diff/11001/12030 File chrome/browser/views/options/content_page_view.cc (left): http://codereview.chromium.org/1134002/diff/11001/12030#oldcode65 ...
10 years, 9 months ago (2010-03-24 22:11:10 UTC) #4
Dan Tasse
Thanks #2! http://codereview.chromium.org/1134002/diff/11001/12018 File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/1134002/diff/11001/12018#newcode417 chrome/browser/sync/profile_sync_service.cc:417: if (bootstrap_sync_authentication_) On 2010/03/24 22:11:11, akalin wrote: ...
10 years, 9 months ago (2010-03-24 22:32:36 UTC) #5
tfarina (gmail-do not use)
http://codereview.chromium.org/1134002/diff/22001/23033 File chrome/browser/views/options/customize_sync_window_view.cc (right): http://codereview.chromium.org/1134002/diff/22001/23033#newcode1 chrome/browser/views/options/customize_sync_window_view.cc:1: // Copyright (c) 2009 The Chromium Authors. All rights ...
10 years, 9 months ago (2010-03-26 21:20:49 UTC) #6
tfarina (gmail-do not use)
http://codereview.chromium.org/1134002/diff/22001/23031 File chrome/browser/views/options/content_page_view.cc (right): http://codereview.chromium.org/1134002/diff/22001/23031#newcode161 chrome/browser/views/options/content_page_view.cc:161: true); nit: true doesn't fit into the above line? ...
10 years, 9 months ago (2010-03-26 21:24:52 UTC) #7
Dan Tasse
http://codereview.chromium.org/1134002/diff/22001/23031 File chrome/browser/views/options/content_page_view.cc (right): http://codereview.chromium.org/1134002/diff/22001/23031#newcode161 chrome/browser/views/options/content_page_view.cc:161: true); On 2010/03/26 21:24:52, tfarina wrote: > nit: true ...
10 years, 9 months ago (2010-03-26 21:48:34 UTC) #8
tim (not reviewing)
One question, few nits, then LGTM http://codereview.chromium.org/1134002/diff/22001/23002 File chrome/app/resources/locale_settings.grd (right): http://codereview.chromium.org/1134002/diff/22001/23002#newcode315 chrome/app/resources/locale_settings.grd:315: 10 I think ...
10 years, 9 months ago (2010-03-26 22:45:09 UTC) #9
Dan Tasse
http://codereview.chromium.org/1134002/diff/22001/23002 File chrome/app/resources/locale_settings.grd (right): http://codereview.chromium.org/1134002/diff/22001/23002#newcode315 chrome/app/resources/locale_settings.grd:315: 10 On 2010/03/26 22:45:10, timsteele wrote: > I think ...
10 years, 8 months ago (2010-03-30 19:50:28 UTC) #10
tim (not reviewing)
LGTM On Tue, Mar 30, 2010 at 12:50 PM, <[email protected]> wrote: > > http://codereview.chromium.org/1134002/diff/22001/23002 > ...
10 years, 8 months ago (2010-03-30 19:55:34 UTC) #11
tfarina (gmail-do not use)
http://codereview.chromium.org/1134002/diff/31001/32033 File chrome/browser/views/options/customize_sync_window_view.cc (right): http://codereview.chromium.org/1134002/diff/31001/32033#newcode27 chrome/browser/views/options/customize_sync_window_view.cc:27: : profile_(profile) { Maybe. But I think you could ...
10 years, 8 months ago (2010-03-30 19:57:19 UTC) #12
arv (Not doing code reviews)
drive by review The HTML, JS and CSS could use some fixes. It has a ...
10 years, 8 months ago (2010-03-30 20:21:53 UTC) #13
Dan Tasse
Thanks, Erik. I've fixed most of the changes. I'm not changing the doctype or the ...
10 years, 8 months ago (2010-03-30 21:54:20 UTC) #14
arv (Not doing code reviews)
10 years, 8 months ago (2010-03-30 22:28:56 UTC) #15
On Tue, Mar 30, 2010 at 14:54,  <[email protected]> wrote:
> Thanks, Erik.  I've fixed most of the changes.  I'm not changing the doctype
> or
> the <!-- --> comments right now, because those might change the way things
> look;
> I'll do it in a later CL.
>
>
> http://codereview.chromium.org/1134002/diff/38001/39023
> File chrome/browser/sync/resources/gaia_login.html (right):
>
> http://codereview.chromium.org/1134002/diff/38001/39023#newcode4
> chrome/browser/sync/resources/gaia_login.html:4: body {
> bgcolor:"#ffffff" }
> On 2010/03/30 20:21:53, arv wrote:
>>
>> Invalid style property. Did you mean background-color>
>
> Done.
>
> http://codereview.chromium.org/1134002/diff/38001/39023#newcode4
> chrome/browser/sync/resources/gaia_login.html:4: body {
> bgcolor:"#ffffff" }
> On 2010/03/30 20:21:53, arv wrote:
>>
>> Invalid value. Did you mean #fff or #ffffff ?
>
> Done.
>
> http://codereview.chromium.org/1134002/diff/38001/39023#newcode493
> chrome/browser/sync/resources/gaia_login.html:493:
> i18n-values="value:customize" onClick="showCustomize();"
> On 2010/03/30 20:21:53, arv wrote:
>>
>> s/onClick/onclick/
>
> Done.
>
> http://codereview.chromium.org/1134002/diff/38001/39023#newcode494
> chrome/browser/sync/resources/gaia_login.html:494:
> style="width:150;visibility:hidden" disabled="true"/>
> On 2010/03/30 20:21:53, arv wrote:
>>
>> <input ... >
>
>> no />
>
> Done.
>
> http://codereview.chromium.org/1134002/diff/38001/39025
> File chrome/browser/sync/resources/setup_flow.html (right):
>
> http://codereview.chromium.org/1134002/diff/38001/39025#newcode1
> chrome/browser/sync/resources/setup_flow.html:1: <HTML id='t'>
> On 2010/03/30 20:21:53, arv wrote:
>>
>> Use lowercase tag names
>
> Done.
>
> http://codereview.chromium.org/1134002/diff/38001/39025#newcode1
> chrome/browser/sync/resources/setup_flow.html:1: <HTML id='t'>
> On 2010/03/30 20:21:53, arv wrote:
>>
>> Missing doctype
>
> What should it be?
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd"> ?

<!DOCTYPE html>

> http://codereview.chromium.org/1134002/diff/38001/39025#newcode6
> chrome/browser/sync/resources/setup_flow.html:6:
> document.getElementById("login").style.display = "none";
> On 2010/03/30 20:21:53, arv wrote:
>>
>> use single quotes in js
>
> Done.
>
> http://codereview.chromium.org/1134002
>

Powered by Google App Engine
This is Rietveld 408576698