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

Issue 2468423010: [Sync] ModelTypeStore::ReadMetadataCallback now returns a MetadataBatch (Closed)

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

Description

[Sync] ModelTypeStore::ReadMetadataCallback now returns a MetadataBatch BUG=661847 Committed: https://crrev.com/b685c4969f6ede8f577a44de4bbfdbfe765524a4 Cr-Commit-Position: refs/heads/master@{#430525}

Patch Set 1 #

Patch Set 2 : Use SyncError instead of Result. #

Total comments: 16

Patch Set 3 : Switch to VerifyMetadata. #

Patch Set 4 : Use protos instead of strings for tests. #

Total comments: 10

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -120 lines) Patch
M components/sync/device_info/device_info_sync_bridge.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M components/sync/device_info/device_info_sync_bridge.cc View 1 1 chunk +3 lines, -27 lines 0 comments Download
M components/sync/model/mock_model_type_store.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M components/sync/model/model_type_store.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl.h View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl.cc View 1 2 3 4 5 chunks +50 lines, -11 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl_unittest.cc View 1 2 3 4 12 chunks +141 lines, -72 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
maxbogue
Sky, Pavel, PTAL! +cc skau@ FYI
4 years, 1 month ago (2016-11-05 00:08:22 UTC) #8
skym
https://codereview.chromium.org/2468423010/diff/20001/components/sync/device_info/device_info_sync_bridge.cc File components/sync/device_info/device_info_sync_bridge.cc (right): https://codereview.chromium.org/2468423010/diff/20001/components/sync/device_info/device_info_sync_bridge.cc#newcode373 components/sync/device_info/device_info_sync_bridge.cc:373: change_processor()->OnMetadataLoaded(error, std::move(metadata_batch)); So much less code! However, this is ...
4 years, 1 month ago (2016-11-05 00:45:43 UTC) #11
maxbogue
https://codereview.chromium.org/2468423010/diff/20001/components/sync/device_info/device_info_sync_bridge.cc File components/sync/device_info/device_info_sync_bridge.cc (right): https://codereview.chromium.org/2468423010/diff/20001/components/sync/device_info/device_info_sync_bridge.cc#newcode373 components/sync/device_info/device_info_sync_bridge.cc:373: change_processor()->OnMetadataLoaded(error, std::move(metadata_batch)); On 2016/11/05 00:45:42, skym wrote: > So ...
4 years, 1 month ago (2016-11-07 17:03:40 UTC) #14
maxbogue
Updated again to use protobufs instead of strings for the metadata tests parameters.
4 years, 1 month ago (2016-11-07 18:24:38 UTC) #19
skym
lgtm https://codereview.chromium.org/2468423010/diff/60001/components/sync/model_impl/model_type_store_impl_unittest.cc File components/sync/model_impl/model_type_store_impl_unittest.cc (right): https://codereview.chromium.org/2468423010/diff/60001/components/sync/model_impl/model_type_store_impl_unittest.cc#newcode21 components/sync/model_impl/model_type_store_impl_unittest.cc:21: sync_pb::ModelTypeState CreateModelTypeState(const std::string& value) { Should the param ...
4 years, 1 month ago (2016-11-07 18:34:22 UTC) #20
pavely
lgtm https://codereview.chromium.org/2468423010/diff/60001/components/sync/model/model_type_store.h File components/sync/model/model_type_store.h (right): https://codereview.chromium.org/2468423010/diff/60001/components/sync/model/model_type_store.h#newcode116 components/sync/model/model_type_store.h:116: typedef base::Callback<void(SyncError sync_error, Alternatively you could introduce helper ...
4 years, 1 month ago (2016-11-08 00:52:08 UTC) #23
maxbogue
https://codereview.chromium.org/2468423010/diff/20001/components/sync/model_impl/model_type_store_impl_unittest.cc File components/sync/model_impl/model_type_store_impl_unittest.cc (right): https://codereview.chromium.org/2468423010/diff/20001/components/sync/model_impl/model_type_store_impl_unittest.cc#newcode116 components/sync/model_impl/model_type_store_impl_unittest.cc:116: ASSERT_FALSE(sync_error.IsSet()); On 2016/11/05 00:45:43, skym wrote: > Doesn't seem ...
4 years, 1 month ago (2016-11-08 03:58:55 UTC) #26
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/2468423010/80001
4 years, 1 month ago (2016-11-08 03:59:32 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-08 05:11:52 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 05:18:06 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b685c4969f6ede8f577a44de4bbfdbfe765524a4
Cr-Commit-Position: refs/heads/master@{#430525}

Powered by Google App Engine
This is Rietveld 408576698