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

Issue 1436573002: [Sync] Implementation of ModelTypeStoreBackend (Closed)

Created:
5 years, 1 month ago by pavely
Modified:
5 years, 1 month ago
Reviewers:
stanisc, cmumford
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Implementation of ModelTypeStoreBackend I'm adding implementation of ModelTypeStoreBackend. The object lives on backend thread and performs actual calls to leveldb. ModelTypeStoreImpl will use interface of backend to work with database. Implementation of ModelTypeStoreImpl methods that work with this backend will be landed in separate CL. R=stanisc@chromium.org BUG=517663 TEST=Covered by sync_unit_tests. No externally observable behavior. Committed: https://crrev.com/d88f80efd9b66130adf721f01ff355db57829c7e Cr-Commit-Position: refs/heads/master@{#359442}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed feedback. #

Total comments: 8

Patch Set 3 : Fix build error. #

Patch Set 4 : Add paranoid_checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -5 lines) Patch
M sync/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/model_type_store_backend.cc View 1 2 3 2 chunks +94 lines, -1 line 0 comments Download
A sync/internal_api/model_type_store_backend_unittest.cc View 1 chunk +129 lines, -0 lines 0 comments Download
M sync/internal_api/model_type_store_impl.cc View 1 2 chunks +15 lines, -2 lines 0 comments Download
M sync/internal_api/public/model_type_store_backend.h View 1 1 chunk +61 lines, -2 lines 0 comments Download
M sync/sync_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (6 generated)
pavely
5 years, 1 month ago (2015-11-09 21:08:13 UTC) #1
stanisc
https://codereview.chromium.org/1436573002/diff/1/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/1436573002/diff/1/sync/internal_api/model_type_store_backend.cc#newcode50 sync/internal_api/model_type_store_backend.cc:50: return ModelTypeStore::Result::UNSPECIFIED_ERROR; I wonder if this code should somehow ...
5 years, 1 month ago (2015-11-09 22:26:38 UTC) #2
pavely
PTAL. https://codereview.chromium.org/1436573002/diff/1/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/1436573002/diff/1/sync/internal_api/model_type_store_backend.cc#newcode50 sync/internal_api/model_type_store_backend.cc:50: return ModelTypeStore::Result::UNSPECIFIED_ERROR; On 2015/11/09 22:26:38, stanisc wrote: > ...
5 years, 1 month ago (2015-11-11 01:13:46 UTC) #3
stanisc
lgtm with a comment https://codereview.chromium.org/1436573002/diff/1/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/1436573002/diff/1/sync/internal_api/model_type_store_backend.cc#newcode96 sync/internal_api/model_type_store_backend.cc:96: ModelTypeStore::Record(key.ToString(), iter->value().ToString())); On 2015/11/11 01:13:46, ...
5 years, 1 month ago (2015-11-11 01:52:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436573002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436573002/20001
5 years, 1 month ago (2015-11-11 21:13:28 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/117624)
5 years, 1 month ago (2015-11-11 21:23:36 UTC) #8
pavely
cmumford@ : I'm adding dependency to third_party/leveldatabase. Please review changes in DEPS file.
5 years, 1 month ago (2015-11-11 21:32:16 UTC) #11
cmumford
DEPS l-g-t-m to me. I took the liberty of also reviewing the code that calls ...
5 years, 1 month ago (2015-11-12 00:26:36 UTC) #12
pavely
Christopher, PTAL. https://codereview.chromium.org/1436573002/diff/20001/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/1436573002/diff/20001/sync/internal_api/model_type_store_backend.cc#newcode43 sync/internal_api/model_type_store_backend.cc:43: options.create_if_missing = true; On 2015/11/12 00:26:36, cmumford ...
5 years, 1 month ago (2015-11-12 22:29:12 UTC) #13
cmumford
lgtm
5 years, 1 month ago (2015-11-12 22:52:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1436573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1436573002/60001
5 years, 1 month ago (2015-11-12 22:54:24 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-12 23:55:37 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 23:57:23 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d88f80efd9b66130adf721f01ff355db57829c7e
Cr-Commit-Position: refs/heads/master@{#359442}

Powered by Google App Engine
This is Rietveld 408576698