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

Issue 9500005: Add a declarative way in c/b/s/sync_prefs.cc to say which data types have prefs (Closed)

Created:
8 years, 9 months ago by not at google - send to devlin
Modified:
8 years, 9 months ago
Reviewers:
akalin, Evan Stade
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing)
Visibility:
Public.

Description

Add a declarative way in c/b/s/sync_prefs.cc to say which data types have prefs whose values are determined by others (e.g. APP_NOTIFICATIONS on APPS). Make the hand-written code use the system, and add {APP,EXTENSION}_SETTINGS. R=akalin@chromium.org TBR=estade@chromium.org BUG=114974 TEST=unit_tests --gtest_filter=*Sync* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124658

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : akalin comments #

Total comments: 9

Patch Set 4 : dependent -> groups #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -83 lines) Patch
M chrome/browser/sync/sync_prefs.h View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 6 chunks +36 lines, -76 lines 0 comments Download
M chrome/browser/sync/sync_prefs_unittest.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
not at google - send to devlin
8 years, 9 months ago (2012-02-29 04:35:55 UTC) #1
akalin
thanks for doing this! few comments http://codereview.chromium.org/9500005/diff/1005/chrome/browser/sync/sync_prefs.cc File chrome/browser/sync/sync_prefs.cc (right): http://codereview.chromium.org/9500005/diff/1005/chrome/browser/sync/sync_prefs.cc#newcode24 chrome/browser/sync/sync_prefs.cc:24: RegisterDeterminedTypes(); this doesn't ...
8 years, 9 months ago (2012-02-29 05:33:03 UTC) #2
not at google - send to devlin
https://chromiumcodereview.appspot.com/9500005/diff/1005/chrome/browser/sync/sync_prefs.cc File chrome/browser/sync/sync_prefs.cc (right): https://chromiumcodereview.appspot.com/9500005/diff/1005/chrome/browser/sync/sync_prefs.cc#newcode24 chrome/browser/sync/sync_prefs.cc:24: RegisterDeterminedTypes(); On 2012/02/29 05:33:03, akalin wrote: > this doesn't ...
8 years, 9 months ago (2012-03-01 03:14:40 UTC) #3
not at google - send to devlin
(Btw I didn't add {Get,Set}Raw... because they would have only been used in one spot, ...
8 years, 9 months ago (2012-03-01 03:16:06 UTC) #4
akalin
> I avoided using the term "dependency" because it gives the wrong connotation in > ...
8 years, 9 months ago (2012-03-01 07:34:52 UTC) #5
akalin
few more comments, plus changing to using PrefGroups http://codereview.chromium.org/9500005/diff/10001/chrome/browser/sync/sync_prefs.cc File chrome/browser/sync/sync_prefs.cc (left): http://codereview.chromium.org/9500005/diff/10001/chrome/browser/sync/sync_prefs.cc#oldcode129 chrome/browser/sync/sync_prefs.cc:129: if ...
8 years, 9 months ago (2012-03-01 07:40:59 UTC) #6
not at google - send to devlin
https://chromiumcodereview.appspot.com/9500005/diff/10001/chrome/browser/sync/sync_prefs.cc File chrome/browser/sync/sync_prefs.cc (right): https://chromiumcodereview.appspot.com/9500005/diff/10001/chrome/browser/sync/sync_prefs.cc#newcode463 chrome/browser/sync/sync_prefs.cc:463: const syncable::ModelTypeSet& registered_types, On 2012/03/01 07:40:59, akalin wrote: > ...
8 years, 9 months ago (2012-03-01 23:39:36 UTC) #7
akalin
LGTM thanks for doing this
8 years, 9 months ago (2012-03-01 23:53:43 UTC) #8
not at google - send to devlin
No probs, thanks for the review.
8 years, 9 months ago (2012-03-01 23:54:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9500005/19001
8 years, 9 months ago (2012-03-01 23:54:55 UTC) #10
commit-bot: I haz the power
Presubmit check for 9500005-19001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-01 23:54:59 UTC) #11
not at google - send to devlin
@estade need lgtm from webui owners, and you're the lucky one who I just noticed ...
8 years, 9 months ago (2012-03-01 23:57:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9500005/19001
8 years, 9 months ago (2012-03-02 03:06:23 UTC) #13
commit-bot: I haz the power
8 years, 9 months ago (2012-03-02 16:08:34 UTC) #14
Change committed as 124658

Powered by Google App Engine
This is Rietveld 408576698