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

Issue 312163004: [Sync] Add support for dynamically enabling/disabling types (Closed)

Created:
6 years, 6 months ago by Nicolas Zea
Modified:
6 years, 6 months ago
Reviewers:
stanisc, haitaol1
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org, Marc Treib
Visibility:
Public.

Description

[Sync] Add support for dynamically enabling/disabling types The notion of Unready types is also introduced for those types which control whether they should run, and therefore for which a configuration (which might involve network access) should not even be performed. BUG=368834 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278658

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 2

Patch Set 3 : Rebase #

Total comments: 9

Patch Set 4 : Address comment, fix purging behavior #

Total comments: 6

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -70 lines) Patch
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 chunks +25 lines, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/backend_data_type_configurer.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/data_type_controller.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M components/sync_driver/data_type_controller.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync_driver/data_type_manager.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M components/sync_driver/data_type_manager_impl.cc View 1 2 3 4 5 chunks +32 lines, -16 lines 0 comments Download
M components/sync_driver/data_type_manager_impl_unittest.cc View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M components/sync_driver/failed_data_types_handler.h View 1 2 3 2 chunks +29 lines, -6 lines 0 comments Download
M components/sync_driver/failed_data_types_handler.cc View 1 2 3 4 chunks +39 lines, -13 lines 0 comments Download
M components/sync_driver/ui_data_type_controller.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M sync/api/sync_error.h View 1 chunk +6 lines, -2 lines 0 comments Download
M sync/api/sync_error.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Nicolas Zea
PTAL
6 years, 6 months ago (2014-06-04 21:20:50 UTC) #1
Nicolas Zea
ping?
6 years, 6 months ago (2014-06-05 21:02:29 UTC) #2
haitaol1
https://codereview.chromium.org/312163004/diff/20001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/312163004/diff/20001/components/sync_driver/data_type_manager_impl.cc#newcode150 components/sync_driver/data_type_manager_impl.cc:150: const syncer::ModelTypeSet& types_being_configured) const { Should types_being_configured not contain ...
6 years, 6 months ago (2014-06-05 22:24:21 UTC) #3
stanisc
https://codereview.chromium.org/312163004/diff/40001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/312163004/diff/40001/components/sync_driver/data_type_manager_impl.cc#newcode101 components/sync_driver/data_type_manager_impl.cc:101: failed_data_types_handler_->UpdateFailedDataTypes(errors); Consider adding an overload for UpdateFailedDataTypes that takes ...
6 years, 6 months ago (2014-06-10 21:21:42 UTC) #4
Nicolas Zea
Comments addressed, PTAL https://codereview.chromium.org/312163004/diff/20001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/312163004/diff/20001/components/sync_driver/data_type_manager_impl.cc#newcode150 components/sync_driver/data_type_manager_impl.cc:150: const syncer::ModelTypeSet& types_being_configured) const { On ...
6 years, 6 months ago (2014-06-19 00:04:23 UTC) #5
stanisc
LGTM https://codereview.chromium.org/312163004/diff/40001/components/sync_driver/failed_data_types_handler.cc File components/sync_driver/failed_data_types_handler.cc (right): https://codereview.chromium.org/312163004/diff/40001/components/sync_driver/failed_data_types_handler.cc#newcode42 components/sync_driver/failed_data_types_handler.cc:42: NOTREACHED(); On 2014/06/19 00:04:22, Nicolas Zea wrote: > ...
6 years, 6 months ago (2014-06-19 17:07:03 UTC) #6
haitaol1
https://codereview.chromium.org/312163004/diff/100001/chrome/browser/sync/glue/sync_backend_host_impl.cc File chrome/browser/sync/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/312163004/diff/100001/chrome/browser/sync/glue/sync_backend_host_impl.cc#newcode354 chrome/browser/sync/glue/sync_backend_host_impl.cc:354: disabled_types.PutAll(unready_types); This will remove routing info of unready types ...
6 years, 6 months ago (2014-06-19 18:14:35 UTC) #7
Nicolas Zea
PTAL https://codereview.chromium.org/312163004/diff/100001/chrome/browser/sync/glue/sync_backend_host_impl.cc File chrome/browser/sync/glue/sync_backend_host_impl.cc (right): https://codereview.chromium.org/312163004/diff/100001/chrome/browser/sync/glue/sync_backend_host_impl.cc#newcode354 chrome/browser/sync/glue/sync_backend_host_impl.cc:354: disabled_types.PutAll(unready_types); On 2014/06/19 18:14:35, haitaol1 wrote: > This ...
6 years, 6 months ago (2014-06-19 21:13:02 UTC) #8
haitaol1
lgtm
6 years, 6 months ago (2014-06-19 22:25:26 UTC) #9
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 6 months ago (2014-06-19 22:26:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/312163004/120001
6 years, 6 months ago (2014-06-19 22:30:56 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 09:48:57 UTC) #12
Message was sent while issue was closed.
Change committed as 278658

Powered by Google App Engine
This is Rietveld 408576698