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

Issue 9395058: [Sync] Remove SyncableServiceAdapter. (Closed)

Created:
8 years, 10 months ago by Nicolas Zea
Modified:
8 years, 9 months ago
Reviewers:
akalin
CC:
chromium-reviews, ncarter (slow), Raghu Simha, mihaip+watch_chromium.org, Aaron Boodman, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Remove SyncableServiceAdapter. This comprises the following changes: - Convert all UI thread datatypes using SyncableService API to use the new UIDataTypeController - Convert ExtensionSettings to use NewNonFrontendDataTypeController (soon to be renamed NonUIDataTypeController). - Have all datatypes using the SyncableService api accessible under one GetSyncableServiceForType(..) method in the ProfileSyncComponentsFactory. - Fix up a bunch of tests. BUG=104658 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125215

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 14

Patch Set 3 : Rebase and address comments #

Total comments: 10

Patch Set 4 : Address comments #

Total comments: 6

Patch Set 5 : Fix compile #

Patch Set 6 : Final comments #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+921 lines, -1182 lines) Patch
A chrome/browser/sync/api/fake_syncable_service.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/sync/api/fake_syncable_service.cc View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/app_notification_data_type_controller.h View 1 2 3 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/app_notification_data_type_controller.cc View 1 2 3 2 chunks +5 lines, -17 lines 0 comments Download
M chrome/browser/sync/glue/app_notification_data_type_controller_unittest.cc View 1 2 3 11 chunks +54 lines, -62 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.h View 1 2 3 2 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.cc View 1 2 3 1 chunk +6 lines, -24 lines 0 comments Download
D chrome/browser/sync/glue/extension_data_type_controller_unittest.cc View 1 chunk +0 lines, -187 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.h View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 2 chunks +3 lines, -13 lines 0 comments Download
A chrome/browser/sync/glue/fake_generic_change_processor.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/fake_generic_change_processor.cc View 1 2 3 4 5 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
D chrome/browser/sync/glue/preference_data_type_controller.h View 1 2 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/sync/glue/preference_data_type_controller.cc View 1 2 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/browser/sync/glue/preference_data_type_controller_unittest.cc View 1 chunk +0 lines, -186 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller.h View 1 2 3 2 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller.cc View 1 2 3 2 chunks +5 lines, -22 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc View 1 2 3 6 chunks +59 lines, -65 lines 0 comments Download
D chrome/browser/sync/glue/syncable_service_adapter.h View 1 chunk +0 lines, -57 lines 0 comments Download
D chrome/browser/sync/glue/syncable_service_adapter.cc View 1 chunk +0 lines, -74 lines 0 comments Download
A + chrome/browser/sync/glue/ui_data_type_controller.h View 1 2 3 5 chunks +33 lines, -47 lines 0 comments Download
A chrome/browser/sync/glue/ui_data_type_controller.cc View 1 2 3 1 chunk +267 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/ui_data_type_controller_unittest.cc View 1 2 3 1 chunk +199 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 1 2 1 chunk +2 lines, -69 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 2 1 chunk +1 line, -33 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 8 chunks +29 lines, -122 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 1 2 2 chunks +1 line, -26 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 4 5 6 5 chunks +15 lines, -32 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 4 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nicolas Zea
PTAL! This should be of the adapter! Most of this is code removal/switching to new ...
8 years, 10 months ago (2012-02-18 00:55:15 UTC) #1
Nicolas Zea
ping!
8 years, 10 months ago (2012-02-24 20:17:50 UTC) #2
akalin
initial comments http://codereview.chromium.org/9395058/diff/2001/chrome/browser/sync/glue/generic_ui_data_type_controller.cc File chrome/browser/sync/glue/generic_ui_data_type_controller.cc (right): http://codereview.chromium.org/9395058/diff/2001/chrome/browser/sync/glue/generic_ui_data_type_controller.cc#newcode21 chrome/browser/sync/glue/generic_ui_data_type_controller.cc:21: type_(type) { any particular reason why you ...
8 years, 10 months ago (2012-02-24 23:54:02 UTC) #3
Nicolas Zea
PTAL https://chromiumcodereview.appspot.com/9395058/diff/2001/chrome/browser/sync/glue/generic_ui_data_type_controller.cc File chrome/browser/sync/glue/generic_ui_data_type_controller.cc (right): https://chromiumcodereview.appspot.com/9395058/diff/2001/chrome/browser/sync/glue/generic_ui_data_type_controller.cc#newcode21 chrome/browser/sync/glue/generic_ui_data_type_controller.cc:21: type_(type) { On 2012/02/24 23:54:02, akalin wrote: > ...
8 years, 9 months ago (2012-03-01 20:50:25 UTC) #4
akalin
> chrome/browser/sync/glue/generic_ui_data_type_controller.cc:21: type_(type) { > On 2012/02/24 23:54:02, akalin wrote: > > any particular reason ...
8 years, 9 months ago (2012-03-03 01:06:24 UTC) #5
akalin
more comments http://codereview.chromium.org/9395058/diff/11001/chrome/browser/sync/api/syncable_service_fake.h File chrome/browser/sync/api/syncable_service_fake.h (right): http://codereview.chromium.org/9395058/diff/11001/chrome/browser/sync/api/syncable_service_fake.h#newcode13 chrome/browser/sync/api/syncable_service_fake.h:13: class SyncableServiceFake : public SyncableService { i ...
8 years, 9 months ago (2012-03-03 01:15:15 UTC) #6
Nicolas Zea
PTAL. http://codereview.chromium.org/9395058/diff/11001/chrome/browser/sync/api/syncable_service_fake.h File chrome/browser/sync/api/syncable_service_fake.h (right): http://codereview.chromium.org/9395058/diff/11001/chrome/browser/sync/api/syncable_service_fake.h#newcode13 chrome/browser/sync/api/syncable_service_fake.h:13: class SyncableServiceFake : public SyncableService { On 2012/03/03 ...
8 years, 9 months ago (2012-03-05 21:59:30 UTC) #7
akalin
LGTM http://codereview.chromium.org/9395058/diff/22001/chrome/browser/sync/api/fake_syncable_service.cc File chrome/browser/sync/api/fake_syncable_service.cc (right): http://codereview.chromium.org/9395058/diff/22001/chrome/browser/sync/api/fake_syncable_service.cc#newcode12 chrome/browser/sync/api/fake_syncable_service.cc:12: FakeSyncableService::~FakeSyncableService() {} newline before http://codereview.chromium.org/9395058/diff/22001/chrome/browser/sync/api/fake_syncable_service.h File chrome/browser/sync/api/fake_syncable_service.h (right): ...
8 years, 9 months ago (2012-03-06 02:33:47 UTC) #8
Nicolas Zea
Done, committing. http://codereview.chromium.org/9395058/diff/22001/chrome/browser/sync/api/fake_syncable_service.cc File chrome/browser/sync/api/fake_syncable_service.cc (right): http://codereview.chromium.org/9395058/diff/22001/chrome/browser/sync/api/fake_syncable_service.cc#newcode12 chrome/browser/sync/api/fake_syncable_service.cc:12: FakeSyncableService::~FakeSyncableService() {} On 2012/03/06 02:33:47, akalin wrote: ...
8 years, 9 months ago (2012-03-06 18:27:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/9395058/37002
8 years, 9 months ago (2012-03-06 18:29:12 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-06 20:56:31 UTC) #11
Change committed as 125215

Powered by Google App Engine
This is Rietveld 408576698