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

Issue 428143002: Sync: Add a SyncTypePreferenceProvider interface. (Closed)

Created:
6 years, 4 months ago by Marc Treib
Modified:
6 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, pam+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Sync: Add a SyncTypePreferenceProvider interface to specify sync types to enable. The PSS evaluates these. For now, this is used by the SupervisedUserService to specify data types that must always be enabled. BUG=395105 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288951

Patch Set 1 #

Total comments: 15

Patch Set 2 : comment #

Total comments: 2

Patch Set 3 : rename and cleanup #

Patch Set 4 : rename fix #

Total comments: 2

Patch Set 5 : move call #

Patch Set 6 : fix #

Patch Set 7 : rebase #

Total comments: 4

Patch Set 8 : Bernhard's comment, and const cleanup #

Patch Set 9 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -14 lines) Patch
M chrome/browser/supervised_user/supervised_user_service.h View 1 2 3 4 5 6 7 5 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.cc View 1 2 3 4 5 6 7 8 6 chunks +37 lines, -9 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 5 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 5 chunks +35 lines, -3 lines 0 comments Download
A chrome/browser/sync/sync_type_preference_provider.h View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Marc Treib
bauerb@chromium.org: Please review changes in c/b/supervised_user. zea@chromium.org: Please review changes in c/b/sync.
6 years, 4 months ago (2014-07-30 11:37:54 UTC) #1
Marc Treib
https://codereview.chromium.org/428143002/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/428143002/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode2514 chrome/browser/sync/profile_sync_service.cc:2514: // TODO(treib): Resolve pref groups? It'd be easiest to ...
6 years, 4 months ago (2014-07-30 11:42:50 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/428143002/diff/1/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/428143002/diff/1/chrome/browser/supervised_user/supervised_user_service.cc#newcode327 chrome/browser/supervised_user/supervised_user_service.cc:327: if (!ProfileIsSupervised()) If we only add ourselves as a ...
6 years, 4 months ago (2014-07-30 12:38:51 UTC) #3
Marc Treib
https://codereview.chromium.org/428143002/diff/1/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/428143002/diff/1/chrome/browser/supervised_user/supervised_user_service.cc#newcode327 chrome/browser/supervised_user/supervised_user_service.cc:327: if (!ProfileIsSupervised()) On 2014/07/30 12:38:51, Bernhard Bauer wrote: > ...
6 years, 4 months ago (2014-07-30 13:10:39 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/428143002/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/428143002/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode2305 chrome/browser/sync/profile_sync_service.cc:2305: data_type_providers_.remove(provider); On 2014/07/30 13:10:39, Marc Treib wrote: > On ...
6 years, 4 months ago (2014-07-30 14:13:20 UTC) #5
Nicolas Zea
https://codereview.chromium.org/428143002/diff/20001/chrome/browser/sync/profile_sync_service_data_type_provider.h File chrome/browser/sync/profile_sync_service_data_type_provider.h (right): https://codereview.chromium.org/428143002/diff/20001/chrome/browser/sync/profile_sync_service_data_type_provider.h#newcode12 chrome/browser/sync/profile_sync_service_data_type_provider.h:12: virtual syncer::ModelTypeSet GetRequiredSyncDataTypes() = 0; This is effectively encapsulating ...
6 years, 4 months ago (2014-07-30 20:20:08 UTC) #6
Marc Treib
https://codereview.chromium.org/428143002/diff/20001/chrome/browser/sync/profile_sync_service_data_type_provider.h File chrome/browser/sync/profile_sync_service_data_type_provider.h (right): https://codereview.chromium.org/428143002/diff/20001/chrome/browser/sync/profile_sync_service_data_type_provider.h#newcode12 chrome/browser/sync/profile_sync_service_data_type_provider.h:12: virtual syncer::ModelTypeSet GetRequiredSyncDataTypes() = 0; On 2014/07/30 20:20:08, Nicolas ...
6 years, 4 months ago (2014-07-31 08:43:25 UTC) #7
Marc Treib
Ping? :)
6 years, 4 months ago (2014-08-04 16:33:17 UTC) #8
Nicolas Zea
Were you planning to try to move the logic to the datatype controller?
6 years, 4 months ago (2014-08-04 17:12:41 UTC) #9
Marc Treib
On 2014/08/04 17:12:41, Nicolas Zea wrote: > Were you planning to try to move the ...
6 years, 4 months ago (2014-08-04 17:22:13 UTC) #10
Nicolas Zea
On 2014/08/04 17:22:13, Marc Treib wrote: > On 2014/08/04 17:12:41, Nicolas Zea wrote: > > ...
6 years, 4 months ago (2014-08-04 17:26:15 UTC) #11
Marc Treib
On 2014/08/04 17:26:15, Nicolas Zea wrote: > On 2014/08/04 17:22:13, Marc Treib wrote: > > ...
6 years, 4 months ago (2014-08-05 08:37:33 UTC) #12
Nicolas Zea
On 2014/08/05 08:37:33, Marc Treib wrote: > On 2014/08/04 17:26:15, Nicolas Zea wrote: > > ...
6 years, 4 months ago (2014-08-05 21:06:25 UTC) #13
Marc Treib
On 2014/08/05 21:06:25, Nicolas Zea wrote: > On 2014/08/05 08:37:33, Marc Treib wrote: > > ...
6 years, 4 months ago (2014-08-06 08:03:11 UTC) #14
Marc Treib
On 2014/08/06 08:03:11, Marc Treib wrote: > On 2014/08/05 21:06:25, Nicolas Zea wrote: > > ...
6 years, 4 months ago (2014-08-06 10:04:22 UTC) #15
Marc Treib
I've renamed the interface as discussed in the mail thread, and also addressed Bernhard's remaining ...
6 years, 4 months ago (2014-08-07 13:05:56 UTC) #16
Bernhard Bauer
Thanks! LGTM
6 years, 4 months ago (2014-08-07 13:27:09 UTC) #17
Nicolas Zea
LGTM with one comment https://codereview.chromium.org/428143002/diff/60001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/428143002/diff/60001/chrome/browser/sync/profile_sync_service.cc#newcode1940 chrome/browser/sync/profile_sync_service.cc:1940: types = Union(GetPreferredDirectoryDataTypes(), I think ...
6 years, 4 months ago (2014-08-07 17:16:33 UTC) #18
Marc Treib
Bernhard, I had to add some code in the SUService to make sure Shutdown() doesn't ...
6 years, 4 months ago (2014-08-08 13:03:59 UTC) #19
Marc Treib
The CQ bit was checked by treib@chromium.org
6 years, 4 months ago (2014-08-11 08:36:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/treib@chromium.org/428143002/120001
6 years, 4 months ago (2014-08-11 08:36:59 UTC) #21
Bernhard Bauer
https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc#newcode155 chrome/browser/supervised_user/supervised_user_service.cc:155: if (!did_init_ || did_shutdown_) When would we call Shutdown() ...
6 years, 4 months ago (2014-08-11 08:48:21 UTC) #22
Marc Treib
https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc#newcode155 chrome/browser/supervised_user/supervised_user_service.cc:155: if (!did_init_ || did_shutdown_) On 2014/08/11 08:48:21, Bernhard Bauer ...
6 years, 4 months ago (2014-08-11 08:57:09 UTC) #23
Bernhard Bauer
https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc#newcode155 chrome/browser/supervised_user/supervised_user_service.cc:155: if (!did_init_ || did_shutdown_) On 2014/08/11 08:57:09, Marc Treib ...
6 years, 4 months ago (2014-08-11 09:07:13 UTC) #24
Marc Treib
The CQ bit was unchecked by treib@chromium.org
6 years, 4 months ago (2014-08-11 09:15:56 UTC) #25
Marc Treib
https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/428143002/diff/120001/chrome/browser/supervised_user/supervised_user_service.cc#newcode155 chrome/browser/supervised_user/supervised_user_service.cc:155: if (!did_init_ || did_shutdown_) On 2014/08/11 09:07:13, Bernhard Bauer ...
6 years, 4 months ago (2014-08-11 09:35:45 UTC) #26
Marc Treib
The CQ bit was checked by treib@chromium.org
6 years, 4 months ago (2014-08-11 09:35:49 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/treib@chromium.org/428143002/140001
6 years, 4 months ago (2014-08-11 09:37:03 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-11 14:19:50 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 14:47:55 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/2847)
6 years, 4 months ago (2014-08-11 14:47:56 UTC) #31
Marc Treib
The CQ bit was checked by treib@chromium.org
6 years, 4 months ago (2014-08-12 09:03:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/treib@chromium.org/428143002/160001
6 years, 4 months ago (2014-08-12 09:05:04 UTC) #33
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 14:22:15 UTC) #34
Message was sent while issue was closed.
Change committed as 288951

Powered by Google App Engine
This is Rietveld 408576698