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

Issue 12033093: sync: Implementation of Priority Preferences. (Closed)

Created:
7 years, 11 months ago by albertb
Modified:
7 years, 9 months ago
CC:
chromium-reviews, akalin, Raghu Simha, browser-components-watch_chromium.org, tfarina, haitaol1, tim (not reviewing)
Visibility:
Public.

Description

sync: Implementation of Priority Preferences. Priority preferences are similar to normal preferences but are never encrypted and are synced ahead of other datatypes. Because they're never encrypted, on first sync, they can be synced immediately after login, before the user is prompted for a passphrase. Expected uses of priority preferences include hardware setting (eg. trackpad speed, scroll direction, etc.) as well as settings that could be 2-way synced with existing Google Account settings (eg. language). BUG=168648 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191047

Patch Set 1 #

Patch Set 2 : Semi-working after rebase #

Patch Set 3 : It works. #

Patch Set 4 : rebase #

Patch Set 5 : another rebase #

Total comments: 16

Patch Set 6 : #

Total comments: 10

Patch Set 7 : Attempting to parametrize the PSS pref test fixture to also test priority prefs. #

Total comments: 4

Patch Set 8 : rebase and cleanup #

Total comments: 6

Patch Set 9 : rebase #

Patch Set 10 : dchecks #

Patch Set 11 : fix the command-line tests #

Patch Set 12 : rebase #

Total comments: 18

Patch Set 13 : update #

Patch Set 14 : Split IsSyncing #

Patch Set 15 : rebase #

Patch Set 16 : rebase #

Patch Set 17 : fix test #

Patch Set 18 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -66 lines) Patch
M chrome/browser/prefs/pref_model_associator.h View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_model_associator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +48 lines, -14 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_service_syncable.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +41 lines, -11 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 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 16 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/enable_disable_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M components/user_prefs/pref_registry_syncable.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -6 lines 0 comments Download
M components/user_prefs/pref_registry_syncable.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -4 lines 0 comments Download
M sync/protocol/priority_preference_specifics.proto View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -8 lines 0 comments Download
M sync/syncable/model_type.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -3 lines 0 comments Download
M sync/tools/testserver/chromiumsync.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
albertb
Since all the preferences that could benefit from this are chromeos-only, I tested by making ...
7 years, 10 months ago (2013-02-12 22:50:06 UTC) #1
albertb
On 2013/02/12 22:50:06, albertb wrote: > Since all the preferences that could benefit from this ...
7 years, 10 months ago (2013-02-21 22:31:18 UTC) #2
Nicolas Zea
FYI, you'll need a prefs/ owner to review as well https://codereview.chromium.org/12033093/diff/18001/chrome/browser/api/sync/profile_sync_service_base.h File chrome/browser/api/sync/profile_sync_service_base.h (right): https://codereview.chromium.org/12033093/diff/18001/chrome/browser/api/sync/profile_sync_service_base.h#newcode40 ...
7 years, 10 months ago (2013-02-21 23:41:11 UTC) #3
albertb
I also fixed a couple of places in pref_model_associator where I wasn't reading from the ...
7 years, 10 months ago (2013-02-22 20:08:47 UTC) #4
Nicolas Zea
It would be nice to have some unit tests that exercise the model associator logic, ...
7 years, 10 months ago (2013-02-25 23:47:47 UTC) #5
albertb
I made the suggested changes, but I'm a bit lost trying to make the PSS ...
7 years, 9 months ago (2013-03-01 22:01:56 UTC) #6
Nicolas Zea
See sync/notifier/invalidator_test_template.h for an example. That said, with the GetSpecifics methods you have now, this ...
7 years, 9 months ago (2013-03-05 01:15:44 UTC) #7
albertb
I reverted the crazy tests for priority preferences. https://codereview.chromium.org/12033093/diff/24001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): https://codereview.chromium.org/12033093/diff/24001/chrome/browser/prefs/pref_model_associator.cc#newcode28 chrome/browser/prefs/pref_model_associator.cc:28: const ...
7 years, 9 months ago (2013-03-15 21:08:45 UTC) #8
Nicolas Zea
LGTM with nits https://codereview.chromium.org/12033093/diff/30001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): https://codereview.chromium.org/12033093/diff/30001/chrome/browser/prefs/pref_model_associator.cc#newcode40 chrome/browser/prefs/pref_model_associator.cc:40: return specifics->mutable_preference(); nit: DCHECK that the ...
7 years, 9 months ago (2013-03-18 19:18:27 UTC) #9
albertb
+battre for chrome/browser/prefs and components/user_prefs https://codereview.chromium.org/12033093/diff/30001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): https://codereview.chromium.org/12033093/diff/30001/chrome/browser/prefs/pref_model_associator.cc#newcode40 chrome/browser/prefs/pref_model_associator.cc:40: return specifics->mutable_preference(); On 2013/03/18 ...
7 years, 9 months ago (2013-03-18 21:33:03 UTC) #10
albertb
-battre (vacation), +mnissler Hi Mattias, can you please take a look a this? Thanks!
7 years, 9 months ago (2013-03-20 19:14:42 UTC) #11
Mattias Nissler (ping if slow)
LGTM provided you address the nits and have a good answer to my question in ...
7 years, 9 months ago (2013-03-21 06:50:15 UTC) #12
Mattias Nissler (ping if slow)
Oh, the CL description should elaborate a bit on what this CL does and why.
7 years, 9 months ago (2013-03-21 06:50:47 UTC) #13
tim (not reviewing)
https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc File chrome/browser/prefs/pref_service_syncable.cc (right): https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc#newcode109 chrome/browser/prefs/pref_service_syncable.cc:109: bool PrefServiceSyncable::IsSyncing() { This isn't going to work properly... ...
7 years, 9 months ago (2013-03-21 16:36:00 UTC) #14
Mattias Nissler (ping if slow)
https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc File chrome/browser/prefs/pref_service_syncable.cc (right): https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc#newcode109 chrome/browser/prefs/pref_service_syncable.cc:109: bool PrefServiceSyncable::IsSyncing() { On 2013/03/21 16:36:00, timsteele wrote: > ...
7 years, 9 months ago (2013-03-21 16:59:40 UTC) #15
albertb
https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_model_associator.cc File chrome/browser/prefs/pref_model_associator.cc (right): https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_model_associator.cc#newcode32 chrome/browser/prefs/pref_model_associator.cc:32: return pref.GetSpecifics().priority_preference().preference(); On 2013/03/21 06:50:15, Mattias Nissler wrote: > ...
7 years, 9 months ago (2013-03-21 17:10:33 UTC) #16
tim (not reviewing)
https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc File chrome/browser/prefs/pref_service_syncable.cc (right): https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc#newcode109 chrome/browser/prefs/pref_service_syncable.cc:109: bool PrefServiceSyncable::IsSyncing() { On 2013/03/21 17:10:33, albertb wrote: > ...
7 years, 9 months ago (2013-03-21 18:10:54 UTC) #17
albertb
https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc File chrome/browser/prefs/pref_service_syncable.cc (right): https://codereview.chromium.org/12033093/diff/44001/chrome/browser/prefs/pref_service_syncable.cc#newcode109 chrome/browser/prefs/pref_service_syncable.cc:109: bool PrefServiceSyncable::IsSyncing() { On 2013/03/21 18:10:55, timsteele wrote: > ...
7 years, 9 months ago (2013-03-21 18:46:29 UTC) #18
tim (not reviewing)
LGTM
7 years, 9 months ago (2013-03-21 20:58:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/albertb@chromium.org/12033093/47002
7 years, 9 months ago (2013-03-21 22:27:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/albertb@chromium.org/12033093/47002
7 years, 9 months ago (2013-03-22 17:50:43 UTC) #21
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=111828
7 years, 9 months ago (2013-03-23 01:31:34 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/albertb@chromium.org/12033093/109001
7 years, 9 months ago (2013-03-27 18:08:50 UTC) #23
commit-bot: I haz the power
7 years, 9 months ago (2013-03-27 22:19:02 UTC) #24
Message was sent while issue was closed.
Change committed as 191047

Powered by Google App Engine
This is Rietveld 408576698