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

Issue 430583003: Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - Part 2 (Closed)

Created:
6 years, 4 months ago by stanisc
Modified:
6 years, 4 months ago
Reviewers:
rlarocque, pavely
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_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 2 This change introduces implementations of UIDataTypeController and SyncableService for DEVICE_INFO type and corresponding unit tests. This types are not hooked to Profile Sync Service yet. The next change (part 3) will move all DeviceInfo related classes to sync_driver component and the final change (part 4) will hook everything up and remove the legacy SyncedDeviceTracker. BUG=395349 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287297

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed CR feedback, added DeviceInfoTracker interface. #

Total comments: 15

Patch Set 3 : Addressed second round of CR feedback, switched to ObserverList. #

Total comments: 2

Patch Set 4 : Added check to verify ObserverList is empty on destruction. #

Patch Set 5 : Fixed memory leak in DataTypeController unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1001 lines, -0 lines) Patch
A chrome/browser/sync/glue/device_info_data_type_controller.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info_data_type_controller.cc View 1 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info_data_type_controller_unittest.cc View 1 2 3 4 1 chunk +118 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info_sync_service.h View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info_sync_service.cc View 1 2 1 chunk +260 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info_sync_service_unittest.cc View 1 2 3 1 chunk +405 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/device_info_tracker.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
stanisc
zea@chromium.org or pavely@chromium.org, please review these changes.
6 years, 4 months ago (2014-07-30 00:14:57 UTC) #1
stanisc
6 years, 4 months ago (2014-07-30 00:16:19 UTC) #2
Nicolas Zea
FYI you only need one owner to review a change. I'll leave it to Pavel, ...
6 years, 4 months ago (2014-07-30 17:44:51 UTC) #3
stanisc
This is all new code - implementation of Syncable Service and DataTypeController for DEVICE_INFO type. ...
6 years, 4 months ago (2014-07-30 18:57:50 UTC) #4
pavely
https://codereview.chromium.org/430583003/diff/20001/chrome/browser/sync/glue/device_info_data_type_controller_unittest.cc File chrome/browser/sync/glue/device_info_data_type_controller_unittest.cc (right): https://codereview.chromium.org/430583003/diff/20001/chrome/browser/sync/glue/device_info_data_type_controller_unittest.cc#newcode52 chrome/browser/sync/glue/device_info_data_type_controller_unittest.cc:52: local_device_.reset(); Resetting controller_ and local_device_ is not necessary, dtor ...
6 years, 4 months ago (2014-07-31 22:52:41 UTC) #5
stanisc
Addressed CR feedback and ran the code through "git cl format". Also moved a few ...
6 years, 4 months ago (2014-08-01 18:54:52 UTC) #6
rlarocque
I did a quick read over this CL. Sorry if any of these comments are ...
6 years, 4 months ago (2014-08-01 20:40:37 UTC) #7
rlarocque
I almost forgot to publish some comments that apply to the whole CL. - If ...
6 years, 4 months ago (2014-08-01 20:56:29 UTC) #8
stanisc
See my comments below. I'll go ahead and switch to ObserverList. Let me also know ...
6 years, 4 months ago (2014-08-01 21:37:42 UTC) #9
stanisc
Addressed most of CR feedback from Richard.A Switched notification mechanism to ObserverList. For now I ...
6 years, 4 months ago (2014-08-01 22:55:50 UTC) #10
rlarocque
https://codereview.chromium.org/430583003/diff/40001/chrome/browser/sync/glue/device_info_sync_service.h File chrome/browser/sync/glue/device_info_sync_service.h (right): https://codereview.chromium.org/430583003/diff/40001/chrome/browser/sync/glue/device_info_sync_service.h#newcode67 chrome/browser/sync/glue/device_info_sync_service.h:67: SyncDataMap all_data_; On 2014/08/01 21:37:42, stanisc wrote: > On ...
6 years, 4 months ago (2014-08-01 23:03:23 UTC) #11
stanisc
Added a check that verifies that ObserverList is empty when DeviceInfoSyncService is destroyed. https://codereview.chromium.org/430583003/diff/60001/chrome/browser/sync/glue/device_info_sync_service.cc File ...
6 years, 4 months ago (2014-08-02 00:53:44 UTC) #12
rlarocque
LGTM, unless Pavel has any other concerns.
6 years, 4 months ago (2014-08-02 00:58:50 UTC) #13
pavely
Oh, sorry... LGTM
6 years, 4 months ago (2014-08-02 01:10:40 UTC) #14
stanisc
The CQ bit was checked by stanisc@chromium.org
6 years, 4 months ago (2014-08-04 05:58:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stanisc@chromium.org/430583003/100001
6 years, 4 months ago (2014-08-04 05:58:45 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-04 07:00:03 UTC) #17
Message was sent while issue was closed.
Change committed as 287297

Powered by Google App Engine
This is Rietveld 408576698