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

Issue 2930183002: Let IndexedDBContextImpl create its own task runner (Closed)

Created:
3 years, 6 months ago by jsbell
Modified:
3 years, 5 months ago
CC:
chromium-reviews, jam, wjmaclean, jsbell+idb_chromium.org, darin-cc_chromium.org, cmumford
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Let IndexedDBContextImpl create its own task runner Have the IndexedDBContextImpl create its own sequenced task runner (via the task scheduler), rather than having it injected on creation. Unit tests needed updating to ensure objects (factory, backing store, transactions, etc) are created on the appropriate sequences and that operations (e.g. blob writes) do correct thread hopping. This makes the tests more correct, but also more complicated. BUG=552552 Review-Url: https://codereview.chromium.org/2930183002 Cr-Commit-Position: refs/heads/master@{#486588} Committed: https://chromium.googlesource.com/chromium/src/+/bd2caa0d663427a19b674a8f88ad36cadcb5275e

Patch Set 1 #

Patch Set 2 : Use ScopedTaskEnvironment for most tests #

Total comments: 4

Patch Set 3 : Work In Progress: Eliminate most use of SetTaskRunnerForTesting #

Patch Set 4 : Restore tear-down execution of tasks #

Patch Set 5 : Update IndexedDBFactoryTest.DataFormatVersion #

Patch Set 6 : Update IndexedDBFactoryTest.DatabaseFailedOpen #

Patch Set 7 : Backing store tests updated; needs more refactoring #

Patch Set 8 : Backing store tests refactored #

Patch Set 9 : Restore TestCallback order #

Patch Set 10 : Speculative win fix #

Patch Set 11 : More spec fix #

Patch Set 12 : Actually compile #

Total comments: 3

Patch Set 13 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1591 lines, -1234 lines) Patch
M chrome/browser/browsing_data/browsing_data_indexed_db_helper_unittest.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/app_data_migrator_unittest.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +907 lines, -635 lines 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.h View 1 2 6 chunks +11 lines, -13 lines 0 comments Download
M content/browser/indexed_db/indexed_db_context_impl.cc View 1 2 5 chunks +15 lines, -14 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +16 lines, -17 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +21 lines, -46 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory_unittest.cc View 1 2 3 4 5 8 chunks +473 lines, -306 lines 0 comments Download
M content/browser/indexed_db/indexed_db_quota_client.cc View 1 2 4 chunks +0 lines, -24 lines 0 comments Download
M content/browser/indexed_db/indexed_db_quota_client_unittest.cc View 1 2 10 chunks +13 lines, -22 lines 0 comments Download
M content/browser/indexed_db/indexed_db_unittest.cc View 1 2 10 chunks +123 lines, -121 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -19 lines 0 comments Download
M content/public/browser/indexed_db_context.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 65 (45 generated)
jsbell
gab@ - can you take an initial look at this?
3 years, 6 months ago (2017-06-12 17:51:13 UTC) #2
jsbell
gab@ - can you take an initial look at this?
3 years, 6 months ago (2017-06-12 17:51:14 UTC) #4
jsbell
On 2017/06/12 17:51:14, jsbell wrote: > gab@ - can you take an initial look at ...
3 years, 6 months ago (2017-06-12 17:56:43 UTC) #5
gab
inline comments on your main questions https://codereview.chromium.org/2930183002/diff/20001/content/browser/indexed_db/indexed_db_context_impl.h File content/browser/indexed_db/indexed_db_context_impl.h (right): https://codereview.chromium.org/2930183002/diff/20001/content/browser/indexed_db/indexed_db_context_impl.h#newcode80 content/browser/indexed_db/indexed_db_context_impl.h:80: const scoped_refptr<base::SequencedTaskRunner>& task_runner) ...
3 years, 6 months ago (2017-06-13 15:31:23 UTC) #6
jsbell
Latest PS is just a work in progress. 3 tests still need updating: * IndexedDBFactoryTest.DatabaseFailedOpen ...
3 years, 5 months ago (2017-06-28 18:56:24 UTC) #9
jsbell
On 2017/06/28 18:56:24, jsbell wrote: > Latest PS is just a work in progress. Still ...
3 years, 5 months ago (2017-06-29 00:49:35 UTC) #18
jsbell
dmurph@ - can you take an initial look? I made several questionable style choices in ...
3 years, 5 months ago (2017-06-30 23:26:30 UTC) #31
dmurph
https://codereview.chromium.org/2930183002/diff/220001/content/browser/indexed_db/indexed_db_backing_store_unittest.cc File content/browser/indexed_db/indexed_db_backing_store_unittest.cc (right): https://codereview.chromium.org/2930183002/diff/220001/content/browser/indexed_db/indexed_db_backing_store_unittest.cc#newcode497 content/browser/indexed_db/indexed_db_backing_store_unittest.cc:497: struct TestState { I like this approach. https://codereview.chromium.org/2930183002/diff/220001/content/browser/indexed_db/indexed_db_factory_unittest.cc File ...
3 years, 5 months ago (2017-07-07 18:29:00 UTC) #42
jsbell
rdevlin@ - can you please review chrome/browser/extensions? bauerb@ - can you please review chrome/browser/browsing_data? jam@ ...
3 years, 5 months ago (2017-07-07 21:35:44 UTC) #44
Devlin
c/b/extensions lgtm
3 years, 5 months ago (2017-07-07 23:01:55 UTC) #45
jam
lgtm
3 years, 5 months ago (2017-07-08 01:01:39 UTC) #46
jsbell
bauerb@ - can you please review chrome/browser/browsing_data? (sorry, used the wrong email before) dmurph@ - ...
3 years, 5 months ago (2017-07-11 19:21:19 UTC) #48
dmurph
lgtm
3 years, 5 months ago (2017-07-11 20:43:23 UTC) #49
Bernhard Bauer
lgtm
3 years, 5 months ago (2017-07-12 15:29:00 UTC) #50
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/2930183002/220001
3 years, 5 months ago (2017-07-12 16:56:30 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/256635)
3 years, 5 months ago (2017-07-12 16:59:52 UTC) #54
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/2930183002/240001
3 years, 5 months ago (2017-07-12 20:58:44 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/336780)
3 years, 5 months ago (2017-07-12 23:27:16 UTC) #59
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/2930183002/240001
3 years, 5 months ago (2017-07-13 22:57:59 UTC) #61
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 01:13:52 UTC) #65
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/bd2caa0d663427a19b674a8f88ad...

Powered by Google App Engine
This is Rietveld 408576698