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

Issue 7511004: [Sync] Refactor data type configuration/activation/deactivation (Closed)

Created:
9 years, 4 months ago by akalin
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, mihaip+watch_chromium.org, Aaron Boodman, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

[Sync] Refactor data type configuration/activation/deactivation Changed ConfigureDataTypes to take a set of types to add and a set of types to remove. Changed Activate/DeactivateDataType to take ModelTypes instead of the DataTypeControllers directly. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96326

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix tests, address comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -278 lines) Patch
M chrome/browser/sync/glue/app_change_processor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl.cc View 1 1 chunk +19 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/data_type_manager_impl_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/extension_change_processor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/preference_data_type_controller_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 9 chunks +28 lines, -28 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 18 chunks +98 lines, -97 lines 2 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 1 2 chunks +33 lines, -101 lines 0 comments Download
M chrome/browser/sync/glue/theme_change_processor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 1 chunk +3 lines, -4 lines 2 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+tim for review
9 years, 4 months ago (2011-08-04 03:37:50 UTC) #1
tim (not reviewing)
I think I like the direction here. Although, I have to say, the fact that ...
9 years, 4 months ago (2011-08-04 03:55:02 UTC) #2
akalin
PTAL http://codereview.chromium.org/7511004/diff/1/chrome/browser/sync/glue/data_type_manager_impl.cc File chrome/browser/sync/glue/data_type_manager_impl.cc (right): http://codereview.chromium.org/7511004/diff/1/chrome/browser/sync/glue/data_type_manager_impl.cc#newcode219 chrome/browser/sync/glue/data_type_manager_impl.cc:219: all_types.insert(syncable::NIGORI); On 2011/08/04 03:55:02, timsteele wrote: > It ...
9 years, 4 months ago (2011-08-10 23:32:33 UTC) #3
tim (not reviewing)
LGTM http://codereview.chromium.org/7511004/diff/8001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/7511004/diff/8001/chrome/browser/sync/glue/sync_backend_host.cc#newcode334 chrome/browser/sync/glue/sync_backend_host.cc:334: } ^^ Wow, what a mindffffffffffffffff http://codereview.chromium.org/7511004/diff/8001/chrome/browser/sync/profile_sync_service.h File ...
9 years, 4 months ago (2011-08-10 23:39:08 UTC) #4
akalin
http://codereview.chromium.org/7511004/diff/8001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/7511004/diff/8001/chrome/browser/sync/glue/sync_backend_host.cc#newcode334 chrome/browser/sync/glue/sync_backend_host.cc:334: } On 2011/08/10 23:39:08, timsteele wrote: > ^^ > ...
9 years, 4 months ago (2011-08-10 23:41:49 UTC) #5
commit-bot: I haz the power
9 years, 4 months ago (2011-08-11 04:58:26 UTC) #6
Change committed as 96326

Powered by Google App Engine
This is Rietveld 408576698