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

Issue 247433004: sync: remove CreateSharedChangeProcessor from ProfileSyncComponentsFactory (Closed)

Created:
6 years, 8 months ago by tim (not reviewing)
Modified:
6 years, 7 months ago
Reviewers:
haitaol1, maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, benquan, haitaol+watch_chromium.org, Dane Wallinga, dyu1, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: remove CreateSharedChangeProcessor from ProfileSyncComponentsFactory This is a step towards changing SCP's dependency on ProfileSyncComponentsFactory to SyncApiComponentsFactory. This method was used exclusively for testing unlike other S.A.C.F methods which serve a production code purpose. Moreover, I found that most tests didn't actually need a SharedChangeProcessorMock yet its presence (especially when considered with CreateGenericChangeProcessor) made things more complicated, so I removed it from everywhere except NonUIDataTypeControllerTest. BUG=339726 R=haitaol@chromium.org, maniscalco@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266597

Patch Set 1 : #

Total comments: 14

Patch Set 2 : review #

Patch Set 3 : remove SCPFactory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -147 lines) Patch
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 1 7 chunks +2 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/autofill_profile_data_type_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/non_ui_data_type_controller.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/non_ui_data_type_controller.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_ui_data_type_controller_unittest.cc View 1 2 8 chunks +51 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc View 3 chunks +0 lines, -9 lines 0 comments Download
D chrome/browser/sync/glue/shared_change_processor_mock.h View 1 chunk +0 lines, -52 lines 0 comments Download
D chrome/browser/sync/glue/shared_change_processor_mock.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/sync/glue/ui_data_type_controller.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/sync/glue/ui_data_type_controller_unittest.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 5 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tim (not reviewing)
Haitao, please review. Nick, FYI.
6 years, 8 months ago (2014-04-22 17:52:03 UTC) #1
maniscalco
https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller.cc File chrome/browser/sync/glue/autofill_data_type_controller.cc (right): https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller.cc#newcode33 chrome/browser/sync/glue/autofill_data_type_controller.cc:33: new SharedChangeProcessorFactory(), nit: you can drop the parentheses (this ...
6 years, 8 months ago (2014-04-23 16:06:12 UTC) #2
haitaol1
https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc File chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc (left): https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc#oldcode217 chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc:217: EXPECT_CALL(*change_processor_.get(), Connect(_, _, _, _, _)) Should this be ...
6 years, 8 months ago (2014-04-23 20:51:39 UTC) #3
haitaol1
https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/non_ui_data_type_controller.cc File chrome/browser/sync/glue/non_ui_data_type_controller.cc (right): https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/non_ui_data_type_controller.cc#newcode34 chrome/browser/sync/glue/non_ui_data_type_controller.cc:34: SharedChangeProcessorFactory* change_processor_factory, On 2014/04/23 20:51:40, haitaol1 wrote: > Why ...
6 years, 8 months ago (2014-04-23 21:50:35 UTC) #4
tim (not reviewing)
Addressed comments. https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller.cc File chrome/browser/sync/glue/autofill_data_type_controller.cc (right): https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/autofill_data_type_controller.cc#newcode33 chrome/browser/sync/glue/autofill_data_type_controller.cc:33: new SharedChangeProcessorFactory(), On 2014/04/23 16:06:12, maniscalco wrote: ...
6 years, 8 months ago (2014-04-25 03:49:02 UTC) #5
haitaol1
https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/non_ui_data_type_controller.cc File chrome/browser/sync/glue/non_ui_data_type_controller.cc (right): https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/non_ui_data_type_controller.cc#newcode34 chrome/browser/sync/glue/non_ui_data_type_controller.cc:34: SharedChangeProcessorFactory* change_processor_factory, I think maybe it's simpler to do ...
6 years, 8 months ago (2014-04-25 17:22:56 UTC) #6
tim (not reviewing)
https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/non_ui_data_type_controller.cc File chrome/browser/sync/glue/non_ui_data_type_controller.cc (right): https://codereview.chromium.org/247433004/diff/20001/chrome/browser/sync/glue/non_ui_data_type_controller.cc#newcode34 chrome/browser/sync/glue/non_ui_data_type_controller.cc:34: SharedChangeProcessorFactory* change_processor_factory, You're right. Normally I prefer injecting to ...
6 years, 8 months ago (2014-04-25 17:54:56 UTC) #7
haitaol1
lgtm
6 years, 8 months ago (2014-04-25 18:51:18 UTC) #8
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 8 months ago (2014-04-25 19:02:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/247433004/70001
6 years, 8 months ago (2014-04-25 22:11:07 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:45:41 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-25 23:45:42 UTC) #12
maniscalco
On 2014/04/25 23:45:42, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 7 months ago (2014-04-28 15:53:33 UTC) #13
tim (not reviewing)
6 years, 7 months ago (2014-04-28 17:41:31 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 manually as r266597 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698