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

Issue 2489683002: [Sync] Make all ModelTypeStore write methods go through WriteBatch. (Closed)

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

Description

[Sync] Make all ModelTypeStore write methods go through WriteBatch. This makes it semantically clearer that the changes are contained in the WriteBatch, and hides all the write functions pertaining to metadata from ModelTypeStore consumers. BUG=661837 Committed: https://crrev.com/bf7d159e836ddddfbfc290bd304cdedec80e61d2 Cr-Commit-Position: refs/heads/master@{#430805}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -54 lines) Patch
M components/sync/device_info/device_info_sync_bridge.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/sync/device_info/device_info_sync_bridge_unittest.cc View 7 chunks +13 lines, -21 lines 0 comments Download
M components/sync/model/mock_model_type_store.h View 2 chunks +14 lines, -12 lines 0 comments Download
M components/sync/model/model_type_store.h View 1 2 chunks +13 lines, -2 lines 0 comments Download
M components/sync/model/model_type_store.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/model_impl/model_type_store_impl_unittest.cc View 1 5 chunks +29 lines, -16 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
maxbogue
Pavel, PTAL! I'm very pleased with how this turned out.
4 years, 1 month ago (2016-11-08 21:00:53 UTC) #3
pavely
lgtm https://codereview.chromium.org/2489683002/diff/1/components/sync/model/model_type_store.h File components/sync/model/model_type_store.h (right): https://codereview.chromium.org/2489683002/diff/1/components/sync/model/model_type_store.h#newcode177 components/sync/model/model_type_store.h:177: FRIEND_TEST_ALL_PREFIXES(ModelTypeStoreImplTest, CorruptEntityMetadata); I usually befriend test class and ...
4 years, 1 month ago (2016-11-08 23:53:53 UTC) #7
maxbogue
https://codereview.chromium.org/2489683002/diff/1/components/sync/model/model_type_store.h File components/sync/model/model_type_store.h (right): https://codereview.chromium.org/2489683002/diff/1/components/sync/model/model_type_store.h#newcode177 components/sync/model/model_type_store.h:177: FRIEND_TEST_ALL_PREFIXES(ModelTypeStoreImplTest, CorruptEntityMetadata); On 2016/11/08 23:53:53, pavely wrote: > I ...
4 years, 1 month ago (2016-11-09 00:14:04 UTC) #8
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/2489683002/20001
4 years, 1 month ago (2016-11-09 00:14:47 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-09 01:21:34 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 01:24:38 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bf7d159e836ddddfbfc290bd304cdedec80e61d2
Cr-Commit-Position: refs/heads/master@{#430805}

Powered by Google App Engine
This is Rietveld 408576698