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

Issue 597423002: Device info datatype should be moved to components/sync_driver. (Closed)

Created:
6 years, 2 months ago by stanisc
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, haitaol+watch_chromium.org, pam+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Device info datatype should be moved to components/sync_driver. Moving device_info* and local_device_info_provider.h to components/sync_driver and updating namespaces for the related classes from browsing_sync to sync_driver. Most of the changes are mechanical - trivial changes of header files and namespaces. There are just few less trivial changes: 1) I've removed GetClientName from DeviceInfo because it depended on content/public. Instead I've inlined GetClientName code (which is rather trivial) in two places where it was used, including supervised_user_registration_utility.cc. That required me to update DEPS file for supervised_user. There isn't anything new in reality - these dependencies already existed indirectly. 2) Added two extra parameters to DeviceInfoDataTypeController to avoid having direct dependencies on the browser. TBR=pkasting@chromium.org,yoz@chromium.org BUG=396136 Committed: https://crrev.com/d0df01813574affc20bb17dfac783ad325d4bb06 Cr-Commit-Position: refs/heads/master@{#296895}

Patch Set 1 #

Patch Set 2 : Updated BUILD.gn for sync_driver #

Total comments: 7

Patch Set 3 : Addressed code review feedback. #

Total comments: 1

Patch Set 4 : Minor CR feedback addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -1023 lines) Patch
M chrome/browser/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/id_mapping_helper_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_registration_utility.cc View 2 chunks +4 lines, -2 lines 0 comments Download
D chrome/browser/sync/glue/device_info.h View 1 chunk +0 lines, -106 lines 0 comments Download
D chrome/browser/sync/glue/device_info.cc View 1 chunk +0 lines, -120 lines 0 comments Download
D chrome/browser/sync/glue/device_info_data_type_controller.h View 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/browser/sync/glue/device_info_data_type_controller.cc View 1 chunk +0 lines, -50 lines 0 comments Download
M chrome/browser/sync/glue/device_info_data_type_controller_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
D chrome/browser/sync/glue/device_info_sync_service.h View 1 chunk +0 lines, -108 lines 0 comments Download
D chrome/browser/sync/glue/device_info_sync_service.cc View 1 chunk +0 lines, -343 lines 0 comments Download
M chrome/browser/sync/glue/device_info_sync_service_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
D chrome/browser/sync/glue/device_info_tracker.h View 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/sync/glue/history_delete_directives_data_type_controller.h View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/sync/glue/local_device_info_provider.h View 1 chunk +0 lines, -50 lines 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_impl.h View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_impl.cc View 5 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_mock.h View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_mock.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 6 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 6 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 6 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sessions/sessions_sync_manager.h View 5 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/sync/sessions/sessions_sync_manager.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +0 lines, -8 lines 0 comments Download
M components/sync_driver.gypi View 1 chunk +8 lines, -0 lines 0 comments Download
M components/sync_driver/BUILD.gn View 1 1 chunk +8 lines, -0 lines 0 comments Download
A + components/sync_driver/device_info.h View 4 chunks +5 lines, -10 lines 0 comments Download
A + components/sync_driver/device_info.cc View 2 chunks +3 lines, -10 lines 0 comments Download
A + components/sync_driver/device_info_data_type_controller.h View 1 2 3 2 chunks +10 lines, -8 lines 0 comments Download
A + components/sync_driver/device_info_data_type_controller.cc View 1 2 3 3 chunks +10 lines, -12 lines 0 comments Download
A + components/sync_driver/device_info_sync_service.h View 2 chunks +6 lines, -6 lines 0 comments Download
A + components/sync_driver/device_info_sync_service.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/sync_driver/device_info_tracker.h View 2 chunks +6 lines, -6 lines 0 comments Download
A + components/sync_driver/local_device_info_provider.h View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
stanisc
zea@chromium.org: Please review the change in general - it is mostly the mechanical renaming with ...
6 years, 2 months ago (2014-09-25 06:53:03 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/597423002/diff/20001/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm File chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm (right): https://codereview.chromium.org/597423002/diff/20001/chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm#newcode24 chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller_unittest.mm:24: #include "components/sync_driver/device_info.h" On 2014/09/25 06:53:03, stanisc wrote: > ...
6 years, 2 months ago (2014-09-25 08:34:22 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/597423002/diff/20001/chrome/browser/supervised_user/DEPS File chrome/browser/supervised_user/DEPS (right): https://codereview.chromium.org/597423002/diff/20001/chrome/browser/supervised_user/DEPS#newcode3 chrome/browser/supervised_user/DEPS:3: "+content/public/browser", This rule already exists in chrome/browser/DEPS. https://codereview.chromium.org/597423002/diff/20001/chrome/browser/supervised_user/DEPS#newcode4 chrome/browser/supervised_user/DEPS:4: ...
6 years, 2 months ago (2014-09-25 08:48:24 UTC) #4
stanisc
Addressed CR feedback. sky@chromium.org: Please review changes in chrome/browser/DEPS. https://codereview.chromium.org/597423002/diff/20001/chrome/browser/supervised_user/DEPS File chrome/browser/supervised_user/DEPS (right): https://codereview.chromium.org/597423002/diff/20001/chrome/browser/supervised_user/DEPS#newcode3 chrome/browser/supervised_user/DEPS:3: ...
6 years, 2 months ago (2014-09-25 18:58:35 UTC) #6
Nicolas Zea
LGTM https://codereview.chromium.org/597423002/diff/40001/components/sync_driver/device_info_data_type_controller.h File components/sync_driver/device_info_data_type_controller.h (right): https://codereview.chromium.org/597423002/diff/40001/components/sync_driver/device_info_data_type_controller.h#newcode18 components/sync_driver/device_info_data_type_controller.h:18: scoped_refptr<base::MessageLoopProxy> ui_thread, nit: pass scoped_refptrs as const ref ...
6 years, 2 months ago (2014-09-25 20:32:56 UTC) #7
sky
DEPS LGTM
6 years, 2 months ago (2014-09-25 23:34:14 UTC) #8
Bernhard Bauer
LGTM!
6 years, 2 months ago (2014-09-25 23:37:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/597423002/60001
6 years, 2 months ago (2014-09-26 05:59:38 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 178181a18d5adcc40e8dd256072e48726c6ac81c
6 years, 2 months ago (2014-09-26 06:17:44 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 06:18:18 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d0df01813574affc20bb17dfac783ad325d4bb06
Cr-Commit-Position: refs/heads/master@{#296895}

Powered by Google App Engine
This is Rietveld 408576698