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

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed)

Created:
5 years, 4 months ago by Nicolas Zea
Modified:
5 years, 3 months ago
Reviewers:
stanisc, brettw, maxbogue
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, vabr+watchlist_chromium.org, maxbogue+watch_chromium.org, browser-components-watch_chromium.org, chromium-apps-reviews_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, estade+watch_chromium.org, pam+watch_chromium.org, gcasto+watchlist_chromium.org, rouslan+autofillwatch_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Replace ProfileSyncComponentsFactory with SyncClient The ProfileSyncComponentsFactoryImpl now inherits from SyncApiComponentsFactory, and will be renamed and componentized in a followup patch. Everywhere else that relied on ProfileSyncComponents now depends on SyncClient, which now has a getter for a SyncApiComponentFactory. BUG=512768, 512832 Committed: https://crrev.com/9276f21f78addeadc5179a2a3b2dcbd9835a5561 Cr-Commit-Position: refs/heads/master@{#346295}

Patch Set 1 #

Patch Set 2 : Fixing tests #

Patch Set 3 : Tests compile #

Patch Set 4 : Tests pass! #

Patch Set 5 : Undo move of mock #

Patch Set 6 : Self review #

Total comments: 24

Patch Set 7 : Address comments and cleanup #

Patch Set 8 : Rebase #

Patch Set 9 : Fix browser_tests #

Patch Set 10 : Rebase #

Patch Set 11 : Fix android compile #

Patch Set 12 : Fix GN deps #

Patch Set 13 : Rebase #

Patch Set 14 : Really fix GN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+970 lines, -1111 lines) Patch
M chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_data_type_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_data_type_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/chrome_sync_client.h View 1 2 3 4 5 6 2 chunks +23 lines, -39 lines 0 comments Download
M chrome/browser/sync/chrome_sync_client.cc View 1 2 3 2 chunks +16 lines, -68 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.h View 1 2 3 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller.cc View 4 chunks +6 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 2 3 4 5 3 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.h View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.cc View 5 chunks +14 lines, -20 lines 0 comments Download
M chrome/browser/sync/glue/autofill_wallet_data_type_controller.h View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/autofill_wallet_data_type_controller.cc View 7 chunks +12 lines, -21 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller.h View 1 2 3 4 5 6 7 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 2 3 4 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_data_type_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.h View 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/extension_setting_data_type_controller.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc View 1 2 3 4 5 6 7 6 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/sync/glue/history_delete_directives_data_type_controller.h View 1 2 3 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc View 1 2 3 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.h View 6 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 6 chunks +10 lines, -32 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_mock.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 1 2 3 4 5 8 chunks +29 lines, -21 lines 0 comments Download
M chrome/browser/sync/glue/password_data_type_controller.h View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/password_data_type_controller.cc View 1 2 3 4 5 3 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc View 1 2 3 4 5 4 chunks +17 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/theme_data_type_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.h View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.cc View 6 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 2 3 4 5 6 7 chunks +21 lines, -22 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 20 chunks +80 lines, -128 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 2 3 4 5 6 4 chunks +6 lines, -4 lines 0 comments Download
D chrome/browser/sync/profile_sync_components_factory_mock.h View 1 2 3 4 5 6 6 chunks +9 lines, -16 lines 0 comments Download
D chrome/browser/sync/profile_sync_components_factory_mock.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 12 chunks +13 lines, -26 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 6 chunks +4 lines, -5 lines 0 comments Download
D chrome/browser/sync/profile_sync_service_android_unittest.cc View 1 2 3 1 chunk +0 lines, -66 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 10 chunks +46 lines, -80 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 4 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 4 5 5 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller.cc View 5 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller_unittest.cc View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 3 4 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_observer_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/options_util_unittest.cc View 1 2 3 4 5 6 7 8 chunks +30 lines, -58 lines 0 comments Download
M components/sync_driver.gypi View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M components/sync_driver/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M components/sync_driver/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync_driver/device_info_data_type_controller.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/device_info_data_type_controller.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M components/sync_driver/device_info_data_type_controller_unittest.cc View 1 5 chunks +4 lines, -21 lines 0 comments Download
M components/sync_driver/fake_generic_change_processor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync_driver/fake_generic_change_processor.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A components/sync_driver/fake_sync_client.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A components/sync_driver/fake_sync_client.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M components/sync_driver/fake_sync_service.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M components/sync_driver/fake_sync_service.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -3 lines 0 comments Download
M components/sync_driver/frontend_data_type_controller.h View 1 2 3 4 5 6 7 4 chunks +3 lines, -7 lines 0 comments Download
M components/sync_driver/frontend_data_type_controller.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -10 lines 0 comments Download
M components/sync_driver/generic_change_processor.h View 2 chunks +3 lines, -1 line 0 comments Download
M components/sync_driver/generic_change_processor.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M components/sync_driver/generic_change_processor_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync_driver/generic_change_processor_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync_driver/generic_change_processor_unittest.cc View 1 2 3 4 5 6 5 chunks +39 lines, -9 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller_unittest.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download
D components/sync_driver/profile_sync_components_factory.h View 1 chunk +0 lines, -117 lines 0 comments Download
M components/sync_driver/shared_change_processor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync_driver/shared_change_processor.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M components/sync_driver/shared_change_processor_unittest.cc View 1 2 3 4 5 6 4 chunks +56 lines, -11 lines 0 comments Download
M components/sync_driver/sync_api_component_factory.h View 1 2 3 4 5 6 1 chunk +88 lines, -5 lines 0 comments Download
M components/sync_driver/sync_client.h View 3 chunks +22 lines, -7 lines 0 comments Download
M components/sync_driver/sync_service.h View 1 2 3 4 5 6 7 4 chunks +23 lines, -4 lines 0 comments Download
M components/sync_driver/ui_data_type_controller.h View 3 chunks +3 lines, -2 lines 0 comments Download
M components/sync_driver/ui_data_type_controller.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M components/sync_driver/ui_data_type_controller_unittest.cc View 1 2 3 4 5 3 chunks +11 lines, -18 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Nicolas Zea
+Stan for review, +Max FYI Unfortunately this change touches all datatype controllers and their tests, ...
5 years, 3 months ago (2015-08-27 00:26:16 UTC) #2
stanisc
Nice! LGTM with some nits/suggestions. Feel free addressing them in a separate change. https://codereview.chromium.org/1310553005/diff/100001/chrome/browser/sync/chrome_sync_client.cc File ...
5 years, 3 months ago (2015-08-27 22:14:05 UTC) #3
Nicolas Zea
Comments addressed (and removed some unnecessary #includes that were left around). +Brett for options_util_unittest https://codereview.chromium.org/1310553005/diff/100001/chrome/browser/sync/chrome_sync_client.cc ...
5 years, 3 months ago (2015-08-27 23:37:16 UTC) #5
brettw
options util unittests lgtm ++
5 years, 3 months ago (2015-08-28 19:34:32 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310553005/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310553005/200001
5 years, 3 months ago (2015-08-28 20:55:06 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/127820)
5 years, 3 months ago (2015-08-28 21:49:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310553005/180002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310553005/180002
5 years, 3 months ago (2015-08-28 22:26:14 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/127890)
5 years, 3 months ago (2015-08-28 23:06:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310553005/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310553005/250001
5 years, 3 months ago (2015-08-28 23:37:06 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/96876)
5 years, 3 months ago (2015-08-29 00:44:04 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310553005/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310553005/250001
5 years, 3 months ago (2015-08-29 00:52:11 UTC) #23
commit-bot: I haz the power
Committed patchset #14 (id:250001)
5 years, 3 months ago (2015-08-29 01:35:09 UTC) #24
commit-bot: I haz the power
5 years, 3 months ago (2015-08-29 01:35:40 UTC) #25
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/9276f21f78addeadc5179a2a3b2dcbd9835a5561
Cr-Commit-Position: refs/heads/master@{#346295}

Powered by Google App Engine
This is Rietveld 408576698