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

Issue 2511703004: [Sync] Remove UIDataTypeController (Closed)

Created:
4 years, 1 month ago by pavely
Modified:
4 years ago
CC:
chromium-reviews, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, browser-components-watch_chromium.org, lhchavez+watch_chromium.org, extensions-reviews_chromium.org, Matt Giuca, sebsg+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, chromium-apps-reviews_chromium.org, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, pam+watch_chromium.org, gcasto+watchlist_chromium.org, sync-reviews_chromium.org, sdefresne+watch_chromium.org, elijahtaylor+arcwatch_chromium.org, mathp+autofillwatch_chromium.org, tfarina, pkl (ping after 24h if needed), jdonnelly+autofillwatch_chromium.org, mac-reviews_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Remove UIDataTypeController The goal is to reduce number of datatype controllers to simplify future refactoring. In this chagne: - Removed UIDataTypeController - All datatypes are switched to NonUIDataTypeController - Removed model_safe_group method, in favor of DirectoryDataTypeController field - Added backend_thread_ so that most of datatypes don't need to override PostTaskOnBackendThread R=maxbogue@chromium.org BUG=647505 TBR=sdefresne@chromium.org Committed: https://crrev.com/fb4af853e48387330a8f89bc55562e1cc4c42f77 Cr-Commit-Position: refs/heads/master@{#434759}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 32

Patch Set 3 : Bringing back UIDataTypeController and reverting SessionDataTypeController #

Patch Set 4 : Rebase. #

Patch Set 5 : Address comments. #

Patch Set 6 : Fix integration test issue. #

Total comments: 10

Patch Set 7 : Address comments #

Total comments: 9

Patch Set 8 : Added comment to NonUIDataTypeController. #

Total comments: 4

Patch Set 9 : Adjusted comments. #

Patch Set 10 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -265 lines) Patch
M chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_data_type_controller.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/chrome_sync_client.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.cc View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 1 2 3 4 1 chunk +6 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h View 1 2 3 4 5 6 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.cc View 1 2 3 4 5 6 4 chunks +21 lines, -17 lines 0 comments Download
M components/autofill/core/browser/autofill_wallet_data_type_controller.h View 1 2 3 4 5 6 2 chunks +1 line, -12 lines 0 comments Download
M components/autofill/core/browser/autofill_wallet_data_type_controller.cc View 1 2 3 4 5 6 3 chunks +8 lines, -16 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_data_type_controller.h View 1 2 3 4 2 chunks +1 line, -9 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_data_type_controller.cc View 1 2 3 4 3 chunks +8 lines, -14 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_data_type_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -9 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_data_type_controller.cc View 1 2 3 4 3 chunks +6 lines, -15 lines 0 comments Download
M components/browser_sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +20 lines, -18 lines 0 comments Download
M components/history/core/browser/history_delete_directives_data_type_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/history/core/browser/history_delete_directives_data_type_controller.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M components/history/core/browser/typed_url_data_type_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M components/history/core/browser/typed_url_data_type_controller.cc View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M components/password_manager/sync/browser/password_data_type_controller.h View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M components/password_manager/sync/browser/password_data_type_controller.cc View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M components/search_engines/search_engine_data_type_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M components/search_engines/search_engine_data_type_controller.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M components/search_engines/search_engine_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/device_info/device_info_data_type_controller.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/device_info/device_info_data_type_controller.cc View 3 chunks +7 lines, -2 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.h View 1 chunk +8 lines, -6 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.cc View 4 chunks +8 lines, -4 lines 0 comments Download
M components/sync/driver/fake_data_type_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/fake_data_type_controller.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M components/sync/driver/frontend_data_type_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/sync/driver/frontend_data_type_controller.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M components/sync/driver/frontend_data_type_controller_mock.h View 1 chunk +0 lines, -5 lines 0 comments Download
M components/sync/driver/non_ui_data_type_controller.h View 1 2 3 4 5 6 7 8 9 5 chunks +30 lines, -10 lines 0 comments Download
M components/sync/driver/non_ui_data_type_controller.cc View 1 2 3 4 6 chunks +36 lines, -9 lines 0 comments Download
M components/sync/driver/non_ui_data_type_controller_mock.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M components/sync/driver/non_ui_data_type_controller_unittest.cc View 1 2 3 4 3 chunks +8 lines, -6 lines 0 comments Download
M components/sync/driver/shared_change_processor.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/shared_change_processor.cc View 2 chunks +3 lines, -3 lines 0 comments Download
D components/sync/driver/ui_data_type_controller.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D components/sync/driver/ui_data_type_controller.cc View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
M components/sync_sessions/session_data_type_controller.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/sync_sessions/session_data_type_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/sync/ios_chrome_sync_client.mm View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 66 (44 generated)
pavely
4 years, 1 month ago (2016-11-18 17:33:08 UTC) #5
maxbogue
Major comments are on NonUIDataTypeController. https://codereview.chromium.org/2511703004/diff/20001/chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h File chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/20001/chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h#newcode30 chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h:30: // NonUIDataTypeController implementations. super ...
4 years, 1 month ago (2016-11-18 19:31:04 UTC) #10
pavely
I have brought back UIDataTypeController and switched SessionDataTypeController to it. The reason is that SessionSyncManager ...
4 years, 1 month ago (2016-11-19 01:11:43 UTC) #21
pavely
Max, PTAL. I've fixed SyncErrorTests issue. I'll convert sessions in a separate change.
4 years, 1 month ago (2016-11-21 21:15:22 UTC) #28
maxbogue
lgtm w/ nits https://codereview.chromium.org/2511703004/diff/100001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/100001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h#newcode51 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h:51: syncer::SyncClient* sync_client_; DirectoryDataTypeController already has a ...
4 years, 1 month ago (2016-11-21 21:44:23 UTC) #29
pavely
https://codereview.chromium.org/2511703004/diff/100001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h File chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/100001/chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h#newcode51 chrome/browser/ui/app_list/arc/arc_package_sync_data_type_controller.h:51: syncer::SyncClient* sync_client_; On 2016/11/21 21:44:23, maxbogue wrote: > DirectoryDataTypeController ...
4 years, 1 month ago (2016-11-22 00:53:51 UTC) #35
pavely
Adding OWNERS reviews. Could you take a look: treib@: chrome/browser/supervised_user/* stevenjb@: chrome/browser/ui/app_list/arc/* sdefresne@: components/history/core/browser/* pkasting@: ...
4 years, 1 month ago (2016-11-22 00:57:41 UTC) #37
Marc Treib
https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc File chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc (left): https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc#oldcode554 chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc:554: DCHECK(!sync_processor_); Why this change? https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h File chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h#newcode21 ...
4 years, 1 month ago (2016-11-22 09:05:59 UTC) #40
vabr (Chromium)
components/password_manager/sync/browser/* and components/autofill/core/browser/* LGTM. Cheers, Vaclav
4 years, 1 month ago (2016-11-22 11:07:31 UTC) #41
stevenjb
https://codereview.chromium.org/2511703004/diff/120001/components/sync/driver/non_ui_data_type_controller.h File components/sync/driver/non_ui_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/120001/components/sync/driver/non_ui_data_type_controller.h#newcode23 components/sync/driver/non_ui_data_type_controller.h:23: If the goal is to remove UIDataTypeController, can we ...
4 years, 1 month ago (2016-11-22 17:07:15 UTC) #42
stevenjb
chrome/browser/ui/app_list/arc/* lgtm
4 years, 1 month ago (2016-11-22 17:07:41 UTC) #43
pavely
https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc File chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc (left): https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc#oldcode554 chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc:554: DCHECK(!sync_processor_); On 2016/11/22 09:05:59, Marc Treib wrote: > Why ...
4 years, 1 month ago (2016-11-22 19:17:53 UTC) #44
Peter Kasting
LGTM https://codereview.chromium.org/2511703004/diff/140001/components/search_engines/search_engine_data_type_controller.h File components/search_engines/search_engine_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/140001/components/search_engines/search_engine_data_type_controller.h#newcode33 components/search_engines/search_engine_data_type_controller.h:33: // NonUIDataTypeController implementation. Nit: Just change the name ...
4 years, 1 month ago (2016-11-22 20:16:02 UTC) #45
Marc Treib
lgtm Thanks! https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc File chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc (left): https://codereview.chromium.org/2511703004/diff/120001/chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc#oldcode554 chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc:554: DCHECK(!sync_processor_); On 2016/11/22 19:17:52, pavely wrote: > ...
4 years ago (2016-11-23 09:16:14 UTC) #46
pavely
https://codereview.chromium.org/2511703004/diff/140001/components/search_engines/search_engine_data_type_controller.h File components/search_engines/search_engine_data_type_controller.h (right): https://codereview.chromium.org/2511703004/diff/140001/components/search_engines/search_engine_data_type_controller.h#newcode33 components/search_engines/search_engine_data_type_controller.h:33: // NonUIDataTypeController implementation. On 2016/11/22 20:16:02, Peter Kasting wrote: ...
4 years ago (2016-11-28 18:56:23 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511703004/180001
4 years ago (2016-11-28 19:02:26 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/324539)
4 years ago (2016-11-28 19:40:39 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511703004/180001
4 years ago (2016-11-28 19:47:25 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/128933)
4 years ago (2016-11-28 20:29:51 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2511703004/180001
4 years ago (2016-11-28 21:27:33 UTC) #61
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-11-28 22:56:59 UTC) #64
commit-bot: I haz the power
4 years ago (2016-11-28 23:00:53 UTC) #66
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/fb4af853e48387330a8f89bc55562e1cc4c42f77
Cr-Commit-Position: refs/heads/master@{#434759}

Powered by Google App Engine
This is Rietveld 408576698