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

Issue 566623003: Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - part 3. (Closed)

Created:
6 years, 3 months ago by stanisc
Modified:
6 years, 3 months ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, zea+watch_chromium.org, haitaol+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

Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - part 3. This change integrates DeviceIfoSyncService and DeviceInfoDataTypeController introduced in an early change with the rest of the Sync code and removes the old implementation of DEVICE_INFO sync type based on SyncedDeviceTracker. As a part of this change DEVICE_INFO stops being a specially implemented control type and becomes a priority type with implementation that follows pattern of the majority of other sync types. This should help to do some further refactoring including decoupling of DeviceInfo sync code from the browser and moving it to sync_driver component. This change also adds support for syncing of local device backup timestamp to DeviceInfoSyncService. This functionality was missing when DeviceInfoSyncService was initially introduced. BUG=395349 Committed: https://crrev.com/3724e60a79c733002e5f3391809f733ae843c8bb Cr-Commit-Position: refs/heads/master@{#295992}

Patch Set 1 #

Patch Set 2 : Unit test fixes #

Total comments: 23

Patch Set 3 : Addressed CR feedback. #

Patch Set 4 : More CR feedback addressed in DeviceInfoSyncService. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+474 lines, -892 lines) Patch
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/signed_in_devices_api.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc View 1 2 4 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api_unittest.cc View 1 2 8 chunks +75 lines, -44 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 +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/device_info_sync_service.h View 1 2 3 2 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/device_info_sync_service.cc View 1 2 3 6 chunks +120 lines, -37 lines 0 comments Download
M chrome/browser/sync/glue/device_info_sync_service_unittest.cc View 4 chunks +153 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.h View 1 2 6 chunks +2 lines, -21 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.cc View 1 2 6 chunks +2 lines, -30 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 3 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc View 1 3 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.cc View 1 chunk +0 lines, -4 lines 0 comments Download
D chrome/browser/sync/glue/synced_device_tracker.h View 1 chunk +0 lines, -101 lines 0 comments Download
D chrome/browser/sync/glue/synced_device_tracker.cc View 1 chunk +0 lines, -238 lines 0 comments Download
D chrome/browser/sync/glue/synced_device_tracker_unittest.cc View 1 chunk +0 lines, -242 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 6 chunks +10 lines, -20 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 9 chunks +29 lines, -69 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M components/sync_driver/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/pref_names.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/sync_prefs.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 3 chunks +2 lines, -6 lines 0 comments Download
M sync/syncable/model_type.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
stanisc
haitaol@chromium.org: Please review changes in the Sync code under chrome/browsers/sync/, components/sync_driver/, and sync/ xiyuan@chromium.org: Please ...
6 years, 3 months ago (2014-09-12 16:21:15 UTC) #2
xiyuan
chrome/browser/ui/ LGTM
6 years, 3 months ago (2014-09-12 16:36:23 UTC) #3
stanisc
Changed Sync code reviewer to zea@chromium.org.
6 years, 3 months ago (2014-09-12 17:41:40 UTC) #5
Yoyo Zhou
extensions LGTM
6 years, 3 months ago (2014-09-15 18:56:32 UTC) #6
Nicolas Zea
Passing to Pavel for the sync review
6 years, 3 months ago (2014-09-15 22:40:11 UTC) #8
stanisc
A few small issues I found myself. https://codereview.chromium.org/566623003/diff/20001/chrome/browser/sync/glue/device_info.h File chrome/browser/sync/glue/device_info.h (right): https://codereview.chromium.org/566623003/diff/20001/chrome/browser/sync/glue/device_info.h#newcode82 chrome/browser/sync/glue/device_info.h:82: DeviceInfo* Clone() ...
6 years, 3 months ago (2014-09-16 00:17:40 UTC) #9
pavely
https://codereview.chromium.org/566623003/diff/20001/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc File chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc (right): https://codereview.chromium.org/566623003/diff/20001/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc#newcode85 chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc:85: ProfileSyncServiceFactory::GetForProfile(profile)->GetDeviceInfoTracker(); What is the condition when GetDeviceInfoTracker() may return ...
6 years, 3 months ago (2014-09-17 23:04:38 UTC) #10
pavely
https://codereview.chromium.org/566623003/diff/20001/chrome/browser/sync/glue/device_info_sync_service.cc File chrome/browser/sync/glue/device_info_sync_service.cc (right): https://codereview.chromium.org/566623003/diff/20001/chrome/browser/sync/glue/device_info_sync_service.cc#newcode111 chrome/browser/sync/glue/device_info_sync_service.cc:111: // Add SyncData for the local deviceif it is ...
6 years, 3 months ago (2014-09-17 23:05:32 UTC) #11
stanisc
Addressed all CR feedback. https://codereview.chromium.org/566623003/diff/20001/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc File chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc (right): https://codereview.chromium.org/566623003/diff/20001/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc#newcode85 chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.cc:85: ProfileSyncServiceFactory::GetForProfile(profile)->GetDeviceInfoTracker(); On 2014/09/17 23:04:38, pavely ...
6 years, 3 months ago (2014-09-18 22:46:54 UTC) #12
pavely
lgtm
6 years, 3 months ago (2014-09-19 17:59:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/566623003/60001
6 years, 3 months ago (2014-09-22 16:19:34 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 56e22acbdd9077248336492223565755839cabaa
6 years, 3 months ago (2014-09-22 16:47:02 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 16:47:39 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3724e60a79c733002e5f3391809f733ae843c8bb
Cr-Commit-Position: refs/heads/master@{#295992}

Powered by Google App Engine
This is Rietveld 408576698