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

Issue 2077713002: [USS] Store supports hosting multiple datatypes per database (Closed)

Created:
4 years, 6 months ago by Gang Wu
Modified:
4 years, 5 months ago
Reviewers:
maxbogue, pavely
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

This is 2 of 2 checks in for making ModelTypeStore supports multiple datatypes. This check-in let ModelTypeStoreBackend can be shared with multiple ModelTypeStore. BUG=615214 Committed: https://crrev.com/71bdb554039faa51622aa87ebdb3b7eeae2dedf0 Cr-Commit-Position: refs/heads/master@{#403962}

Patch Set 1 : #

Patch Set 2 : can create multiple backend base on path #

Total comments: 10

Patch Set 3 : change the way to create backend #

Total comments: 24

Patch Set 4 : Update base on pavel's comments #

Total comments: 22

Patch Set 5 : remove backend if init failed #

Total comments: 4

Patch Set 6 #

Total comments: 2

Patch Set 7 : remove includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -109 lines) Patch
M sync/internal_api/model_type_store_backend.cc View 1 2 3 4 2 chunks +37 lines, -9 lines 0 comments Download
M sync/internal_api/model_type_store_backend_unittest.cc View 1 2 3 4 5 6 6 chunks +80 lines, -21 lines 0 comments Download
M sync/internal_api/model_type_store_impl.cc View 1 2 3 4 5 8 chunks +38 lines, -46 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 2 chunks +5 lines, -5 lines 0 comments Download
M sync/internal_api/public/model_type_store_backend.h View 1 2 3 4 4 chunks +35 lines, -14 lines 0 comments Download
M sync/internal_api/public/model_type_store_impl.h View 1 2 3 4 3 chunks +13 lines, -10 lines 0 comments Download
M sync/syncable/model_type.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
Gang Wu
PTAL
4 years, 6 months ago (2016-06-17 21:34:28 UTC) #8
pavely
This is a good start. I have a couple of suggestions: 1.ModelTypeStoreBackend::GetOrCreateBackend creates backend on ...
4 years, 6 months ago (2016-06-23 18:04:36 UTC) #9
maxbogue
Posting the comments I'd made so far, but +1 to everything Pavel said! https://codereview.chromium.org/2077713002/diff/110001/components/sync_driver/device_info_service_unittest.cc File ...
4 years, 6 months ago (2016-06-23 18:22:22 UTC) #10
Gang Wu
updated, PTAL https://codereview.chromium.org/2077713002/diff/110001/components/sync_driver/device_info_service_unittest.cc File components/sync_driver/device_info_service_unittest.cc (right): https://codereview.chromium.org/2077713002/diff/110001/components/sync_driver/device_info_service_unittest.cc#newcode185 components/sync_driver/device_info_service_unittest.cc:185: void SetUp() override { On 2016/06/23 18:22:22, ...
4 years, 5 months ago (2016-06-27 23:19:39 UTC) #13
pavely
https://codereview.chromium.org/2077713002/diff/170001/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/2077713002/diff/170001/sync/internal_api/model_type_store_backend.cc#newcode47 sync/internal_api/model_type_store_backend.cc:47: scoped_refptr<base::SequencedTaskRunner> blocking_task_runner) { blocking_task_runner is not used. Could you ...
4 years, 5 months ago (2016-06-30 20:42:51 UTC) #14
Gang Wu
update https://codereview.chromium.org/2077713002/diff/170001/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/2077713002/diff/170001/sync/internal_api/model_type_store_backend.cc#newcode47 sync/internal_api/model_type_store_backend.cc:47: scoped_refptr<base::SequencedTaskRunner> blocking_task_runner) { On 2016/06/30 20:42:51, pavely wrote: ...
4 years, 5 months ago (2016-07-01 05:40:12 UTC) #15
pavely
https://codereview.chromium.org/2077713002/diff/190001/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/2077713002/diff/190001/sync/internal_api/model_type_store_backend.cc#newcode13 sync/internal_api/model_type_store_backend.cc:13: #include "base/sequenced_task_runner.h" You shouldn't need bind.h, location.h and sequenced_task_runner.h. ...
4 years, 5 months ago (2016-07-02 00:02:59 UTC) #16
Gang Wu
updated, PTAL https://codereview.chromium.org/2077713002/diff/190001/sync/internal_api/model_type_store_backend.cc File sync/internal_api/model_type_store_backend.cc (right): https://codereview.chromium.org/2077713002/diff/190001/sync/internal_api/model_type_store_backend.cc#newcode13 sync/internal_api/model_type_store_backend.cc:13: #include "base/sequenced_task_runner.h" On 2016/07/02 00:02:58, pavely wrote: ...
4 years, 5 months ago (2016-07-05 20:03:10 UTC) #17
pavely
https://codereview.chromium.org/2077713002/diff/210001/sync/internal_api/model_type_store_backend_unittest.cc File sync/internal_api/model_type_store_backend_unittest.cc (right): https://codereview.chromium.org/2077713002/diff/210001/sync/internal_api/model_type_store_backend_unittest.cc#newcode34 sync/internal_api/model_type_store_backend_unittest.cc:34: std::unique_ptr<ModelTypeStore::Result> result( nit: Here you don't pass result though ...
4 years, 5 months ago (2016-07-06 04:47:55 UTC) #18
Gang Wu
PTAL https://codereview.chromium.org/2077713002/diff/210001/sync/internal_api/model_type_store_backend_unittest.cc File sync/internal_api/model_type_store_backend_unittest.cc (right): https://codereview.chromium.org/2077713002/diff/210001/sync/internal_api/model_type_store_backend_unittest.cc#newcode34 sync/internal_api/model_type_store_backend_unittest.cc:34: std::unique_ptr<ModelTypeStore::Result> result( On 2016/07/06 04:47:55, pavely wrote: > ...
4 years, 5 months ago (2016-07-06 18:39:08 UTC) #19
pavely
lgtm % one comment. https://codereview.chromium.org/2077713002/diff/230001/sync/internal_api/model_type_store_backend_unittest.cc File sync/internal_api/model_type_store_backend_unittest.cc (right): https://codereview.chromium.org/2077713002/diff/230001/sync/internal_api/model_type_store_backend_unittest.cc#newcode57 sync/internal_api/model_type_store_backend_unittest.cc:57: base::MessageLoop sync_loop_; I think MessageLoop ...
4 years, 5 months ago (2016-07-06 18:51:57 UTC) #20
Gang Wu
https://codereview.chromium.org/2077713002/diff/230001/sync/internal_api/model_type_store_backend_unittest.cc File sync/internal_api/model_type_store_backend_unittest.cc (right): https://codereview.chromium.org/2077713002/diff/230001/sync/internal_api/model_type_store_backend_unittest.cc#newcode57 sync/internal_api/model_type_store_backend_unittest.cc:57: base::MessageLoop sync_loop_; On 2016/07/06 18:51:57, pavely wrote: > I ...
4 years, 5 months ago (2016-07-06 19:10:01 UTC) #21
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/2077713002/250001
4 years, 5 months ago (2016-07-06 21:14:19 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:250001)
4 years, 5 months ago (2016-07-06 22:35:43 UTC) #26
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-06 22:35:49 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 22:37:34 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/71bdb554039faa51622aa87ebdb3b7eeae2dedf0
Cr-Commit-Position: refs/heads/master@{#403962}

Powered by Google App Engine
This is Rietveld 408576698