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

Issue 2426613003: [sync] Add store version to model type store backend (Closed)

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

Description

[sync] Add store version to model type store backend Add the ModelTypeStoreSchemaDescriptor protobuf, and add a basic framework for performing migration. Add a Paranoid PRESUBMIT test to make sure the record identifier for the db version won't be reused. R=pavely@chromium.org BUG=656737 Committed: https://crrev.com/4feacb1e9db9b1ecc40ce0531fa2e04e4ee8ee0e Cr-Commit-Position: refs/heads/master@{#426900}

Patch Set 1 #

Total comments: 15

Patch Set 2 : make descriptor internal only; guard against schema on disk too high #

Total comments: 1

Patch Set 3 : Made constants private, stick to early return on error #

Patch Set 4 : [sync] Add store version to model type store backend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -6 lines) Patch
M components/sync/PRESUBMIT.py View 3 chunks +21 lines, -0 lines 0 comments Download
M components/sync/PRESUBMIT_test.py View 3 chunks +11 lines, -1 line 0 comments Download
M components/sync/model/model_type_store.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/model_impl/model_type_store_backend.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M components/sync/model_impl/model_type_store_backend.cc View 1 2 6 chunks +66 lines, -5 lines 0 comments Download
M components/sync/model_impl/model_type_store_backend_unittest.cc View 1 2 3 chunks +54 lines, -0 lines 0 comments Download
A components/sync/protocol/model_type_store_schema_descriptor.proto View 1 1 chunk +19 lines, -0 lines 0 comments Download
M components/sync/protocol/protocol_sources.gni View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (24 generated)
Patrick Noland
Pavel, PTAL
4 years, 2 months ago (2016-10-17 21:31:41 UTC) #5
maxbogue
Caught a few small things while glancing through. https://codereview.chromium.org/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h File components/sync/model_impl/model_type_store_backend.h (right): https://codereview.chromium.org/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h#newcode5 components/sync/model_impl/model_type_store_backend.h:5: #ifndef ...
4 years, 2 months ago (2016-10-18 00:17:51 UTC) #6
pavely
https://chromiumcodereview.appspot.com/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h File components/sync/model_impl/model_type_store_backend.h (right): https://chromiumcodereview.appspot.com/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h#newcode32 components/sync/model_impl/model_type_store_backend.h:32: extern const char kDBSchemaDescriptorRecordId[]; These two constants should not ...
4 years, 2 months ago (2016-10-18 18:58:26 UTC) #7
Patrick Noland
Pavel, PTAL https://codereview.chromium.org/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h File components/sync/model_impl/model_type_store_backend.h (right): https://codereview.chromium.org/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h#newcode5 components/sync/model_impl/model_type_store_backend.h:5: #ifndef COMPONENTS_SYNC_CORE_MODEL_TYPE_STORE_BACKEND_H_ On 2016/10/18 00:17:51, maxbogue wrote: ...
4 years, 2 months ago (2016-10-20 19:16:00 UTC) #15
pavely
lgtm https://codereview.chromium.org/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h File components/sync/model_impl/model_type_store_backend.h (right): https://codereview.chromium.org/2426613003/diff/1/components/sync/model_impl/model_type_store_backend.h#newcode32 components/sync/model_impl/model_type_store_backend.h:32: extern const char kDBSchemaDescriptorRecordId[]; On 2016/10/20 19:15:59, Patrick ...
4 years, 2 months ago (2016-10-20 21:33:52 UTC) #18
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/2426613003/80001
4 years, 2 months ago (2016-10-21 21:03:42 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 2 months ago (2016-10-21 21:50:40 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 21:55:15 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4feacb1e9db9b1ecc40ce0531fa2e04e4ee8ee0e
Cr-Commit-Position: refs/heads/master@{#426900}

Powered by Google App Engine
This is Rietveld 408576698