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

Issue 2222373003: [Sync] Adding storage key concept for ModelTypeServices. (Closed)

Created:
4 years, 4 months ago by skym
Modified:
4 years, 4 months ago
Reviewers:
maxbogue, skym1
CC:
chromium-reviews, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introducing the concept for a storage key for ModelTypeServices, which is used to communicate with the processor and independent of client tag and client tag hashes. Ideally the services will be able to use any object, not just a std::string. My intention is that this can be done in a subsequent change, if we decide we still want to do so. BUG=636140 Committed: https://crrev.com/b9932b5ad0b4632a7d651ae3442241ec759c5293 Cr-Commit-Position: refs/heads/master@{#411438}

Patch Set 1 #

Patch Set 2 : Comments and method name fixes. #

Total comments: 24

Patch Set 3 : Updates for Max. #

Total comments: 4

Patch Set 4 : Removing explicit copy constructor syntax. #

Patch Set 5 : Removing redundant hash value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -594 lines) Patch
M components/sync/api/data_batch.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/api/entity_change.h View 1 chunk +10 lines, -6 lines 0 comments Download
M components/sync/api/entity_change.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M components/sync/api/fake_model_type_service.h View 2 chunks +3 lines, -1 line 0 comments Download
M components/sync/api/fake_model_type_service.cc View 2 chunks +5 lines, -1 line 0 comments Download
M components/sync/api/metadata_batch.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync/api/metadata_batch.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/sync/api/metadata_change_list.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/api/model_type_change_processor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/api/model_type_service.h View 1 2 2 chunks +18 lines, -4 lines 0 comments Download
M components/sync/core/data_batch_impl.h View 1 chunk +6 lines, -6 lines 0 comments Download
M components/sync/core/data_batch_impl.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M components/sync/core/data_batch_impl_unittest.cc View 1 5 chunks +8 lines, -8 lines 0 comments Download
M components/sync/core/processor_entity_tracker.h View 4 chunks +6 lines, -6 lines 0 comments Download
M components/sync/core/processor_entity_tracker.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M components/sync/core/processor_entity_tracker_unittest.cc View 19 chunks +46 lines, -43 lines 0 comments Download
M components/sync/core/shared_model_type_processor.h View 1 2 3 chunks +24 lines, -8 lines 0 comments Download
M components/sync/core/shared_model_type_processor.cc View 1 2 17 chunks +56 lines, -40 lines 0 comments Download
M components/sync/core/shared_model_type_processor_unittest.cc View 1 2 3 4 42 chunks +341 lines, -305 lines 0 comments Download
M components/sync/test/engine/mock_model_type_worker.h View 1 3 chunks +25 lines, -21 lines 0 comments Download
M components/sync/test/engine/mock_model_type_worker.cc View 1 6 chunks +35 lines, -45 lines 0 comments Download
M components/sync_driver/device_info_service.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/sync_driver/device_info_service.cc View 7 chunks +16 lines, -14 lines 0 comments Download
M components/sync_driver/device_info_service_unittest.cc View 1 2 19 chunks +59 lines, -55 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
skym
PTAL. I'm not super happy with how some of the processor's unittest came out, I ...
4 years, 4 months ago (2016-08-09 23:25:30 UTC) #5
skym
https://codereview.chromium.org/2222373003/diff/20001/components/sync_driver/device_info_service_unittest.cc File components/sync_driver/device_info_service_unittest.cc (right): https://codereview.chromium.org/2222373003/diff/20001/components/sync_driver/device_info_service_unittest.cc#newcode258 components/sync_driver/device_info_service_unittest.cc:258: // pushes them onto the given change list. The ...
4 years, 4 months ago (2016-08-10 19:23:23 UTC) #8
maxbogue
Mostly looks good! https://codereview.chromium.org/2222373003/diff/20001/components/sync/api/model_type_service.h File components/sync/api/model_type_service.h (right): https://codereview.chromium.org/2222373003/diff/20001/components/sync/api/model_type_service.h#newcode85 components/sync/api/model_type_service.h:85: // that was/would have been generated ...
4 years, 4 months ago (2016-08-10 23:56:03 UTC) #9
skym
https://codereview.chromium.org/2222373003/diff/20001/components/sync/api/model_type_service.h File components/sync/api/model_type_service.h (right): https://codereview.chromium.org/2222373003/diff/20001/components/sync/api/model_type_service.h#newcode85 components/sync/api/model_type_service.h:85: // that was/would have been generated in the SyncableService/Directory ...
4 years, 4 months ago (2016-08-11 16:28:48 UTC) #12
maxbogue
lgtm! https://codereview.chromium.org/2222373003/diff/40001/components/sync/core/shared_model_type_processor_unittest.cc File components/sync/core/shared_model_type_processor_unittest.cc (right): https://codereview.chromium.org/2222373003/diff/40001/components/sync/core/shared_model_type_processor_unittest.cc#newcode633 components/sync/core/shared_model_type_processor_unittest.cc:633: EntitySpecifics specifics1(ResetStateWriteItem(kKey1, kValue1)); Per offline discussion, can we ...
4 years, 4 months ago (2016-08-11 18:53:54 UTC) #15
skym
https://codereview.chromium.org/2222373003/diff/40001/components/sync/core/shared_model_type_processor_unittest.cc File components/sync/core/shared_model_type_processor_unittest.cc (right): https://codereview.chromium.org/2222373003/diff/40001/components/sync/core/shared_model_type_processor_unittest.cc#newcode633 components/sync/core/shared_model_type_processor_unittest.cc:633: EntitySpecifics specifics1(ResetStateWriteItem(kKey1, kValue1)); On 2016/08/11 18:53:54, maxbogue wrote: > ...
4 years, 4 months ago (2016-08-11 18:58:56 UTC) #16
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/2222373003/80001
4 years, 4 months ago (2016-08-11 21:20:37 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-11 23:31:06 UTC) #25
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 23:34:15 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b9932b5ad0b4632a7d651ae3442241ec759c5293
Cr-Commit-Position: refs/heads/master@{#411438}

Powered by Google App Engine
This is Rietveld 408576698