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

Issue 2461723002: [Sync] DeviceInfoService static method and error cleanup. (Closed)

Created:
4 years, 1 month ago by skym
Modified:
4 years, 1 month ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] DeviceInfoService static method and error cleanup. * Exampling upon ModelTypeService's comments to explain when OnMetadataLoaded should be called. * Removed old TODOs from DeviceInfoService * Updated error handling to be slightly more consistent. * Moving static methods to be anonymous namespaced. * Updated unittests to not need static DeviceInfoService methods by modifying the way test data is created. BUG=659263 Committed: https://crrev.com/fc8171bfb29731cb8f3c302594eb2b9ba9b9239d Cr-Commit-Position: refs/heads/master@{#428527}

Patch Set 1 #

Patch Set 2 : Reworking unittests to not need any static methods, updated static method names. #

Patch Set 3 : Moved local suffix into a constant. #

Total comments: 12

Patch Set 4 : This is why we can't have nice things. #

Patch Set 5 : Updates for Max. #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : removing stdint.h from device_info_service.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -194 lines) Patch
M components/sync/device_info/device_info_service.h View 1 2 3 4 5 6 3 chunks +0 lines, -16 lines 0 comments Download
M components/sync/device_info/device_info_service.cc View 1 2 3 4 5 14 chunks +64 lines, -78 lines 0 comments Download
M components/sync/device_info/device_info_service_unittest.cc View 1 2 3 4 5 23 chunks +83 lines, -99 lines 0 comments Download
M components/sync/model/model_type_sync_bridge.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (20 generated)
skym
PTAL. Bunch of simplistic cleanup so that the next CL to fix dealing with the ...
4 years, 1 month ago (2016-10-28 18:30:24 UTC) #5
skym
Removing unused method.
4 years, 1 month ago (2016-10-28 19:03:20 UTC) #9
maxbogue
Note that this will conflict with http://crrev.com/2458013002. https://codereview.chromium.org/2461723002/diff/40001/components/sync/device_info/device_info_service.cc File components/sync/device_info/device_info_service.cc (right): https://codereview.chromium.org/2461723002/diff/40001/components/sync/device_info/device_info_service.cc#newcode42 components/sync/device_info/device_info_service.cc:42: Time GetLastUpdateTime(const ...
4 years, 1 month ago (2016-10-28 20:20:02 UTC) #13
skym
Updates for Max. https://codereview.chromium.org/2461723002/diff/40001/components/sync/device_info/device_info_service.cc File components/sync/device_info/device_info_service.cc (right): https://codereview.chromium.org/2461723002/diff/40001/components/sync/device_info/device_info_service.cc#newcode42 components/sync/device_info/device_info_service.cc:42: Time GetLastUpdateTime(const DeviceInfoSpecifics& specifics) { On ...
4 years, 1 month ago (2016-10-28 20:46:16 UTC) #16
skym
Rebase
4 years, 1 month ago (2016-10-28 21:24:44 UTC) #21
maxbogue
lgtm; just ignore the Model and Time stuff, I don't actually care about it. https://codereview.chromium.org/2461723002/diff/100001/components/sync/device_info/device_info_service.h ...
4 years, 1 month ago (2016-10-28 21:33:20 UTC) #22
skym
Update for Max. https://codereview.chromium.org/2461723002/diff/100001/components/sync/device_info/device_info_service.h File components/sync/device_info/device_info_service.h (right): https://codereview.chromium.org/2461723002/diff/100001/components/sync/device_info/device_info_service.h#newcode8 components/sync/device_info/device_info_service.h:8: #include <stdint.h> On 2016/10/28 21:33:20, maxbogue ...
4 years, 1 month ago (2016-10-28 21:49:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2461723002/120001
4 years, 1 month ago (2016-10-28 21:50:08 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-28 22:38:55 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 22:40:54 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fc8171bfb29731cb8f3c302594eb2b9ba9b9239d
Cr-Commit-Position: refs/heads/master@{#428527}

Powered by Google App Engine
This is Rietveld 408576698