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

Issue 2847013002: Switch to mojo localstorage backend by default. (Closed)

Created:
3 years, 7 months ago by Marijn Kruisselbrink
Modified:
3 years, 6 months ago
Reviewers:
michaeln, jam, dcheng
CC:
Aaron Boodman, abarth-chromium, blink-reviews, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch to mojo localstorage backend by default. Old non-mojo sqlite based backend is still available with --disable-mojo-local-storage. The mojo-localstorage virtual layout test suite is switched to now test the non-mojo local storage implementation. Other than changing the default, some minor changes are made to make sure all existing tests still pass: - LocalStorageContextMojo is made to work in unit tests where no Connector exists - Several StoragePartitionImpl unittests relied on localstorage internals, these tests were updated to now work with the new leveldb implementation. BUG=586194 Review-Url: https://codereview.chromium.org/2847013002 Cr-Commit-Position: refs/heads/master@{#477458} Committed: https://chromium.googlesource.com/chromium/src/+/c8e2b27f71c6792fa1072fa98a22c111ad229090

Patch Set 1 #

Patch Set 2 : update storage partition unit tests #

Patch Set 3 : fix mojo localstorage shutdown behavior #

Patch Set 4 : fix some more browser tests and hopefully fix win clang compile error #

Patch Set 5 : Fix threading issues by not using FILE thread. #

Patch Set 6 : rebase #

Patch Set 7 : fix rebase #

Patch Set 8 : Slight optimization in deleting local storage for an origin. #

Patch Set 9 : rebase #

Patch Set 10 : fix major bug in LocalStorageCachedArea #

Patch Set 11 : rebase #

Patch Set 12 : rebase #

Patch Set 13 : try to fix mac test failure #

Patch Set 14 : try separate thread to see if it fixes mac error #

Patch Set 15 : maybe just clearing context_ is enough to make tests happy #

Patch Set 16 : minor cleanup #

Total comments: 10

Patch Set 17 : Slightly change how GetLocalStorageUsage combines the two sources of information. #

Patch Set 18 : Make API to set testing database slightly more sensible #

Patch Set 19 : don't null out context_ #

Patch Set 20 : rebase #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -83 lines) Patch
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/dom_storage/dom_storage_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -3 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_wrapper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +56 lines, -27 lines 3 comments Download
M content/browser/dom_storage/local_storage_context_mojo.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/dom_storage/local_storage_context_mojo.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +18 lines, -6 lines 5 comments Download
M content/browser/dom_storage/local_storage_context_mojo_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/storage_partition_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +65 lines, -25 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +1 line, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 106 (90 generated)
Marijn Kruisselbrink
3 years, 7 months ago (2017-05-26 00:05:50 UTC) #60
michaeln
https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode274 content/browser/dom_storage/dom_storage_context_wrapper.cc:274: context_ = nullptr; this might turn up some crashes ...
3 years, 7 months ago (2017-05-26 19:12:44 UTC) #63
Marijn Kruisselbrink
https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode274 content/browser/dom_storage/dom_storage_context_wrapper.cc:274: context_ = nullptr; On 2017/05/26 at 19:12:44, michaeln wrote: ...
3 years, 7 months ago (2017-05-26 23:43:02 UTC) #70
michaeln
https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode274 content/browser/dom_storage/dom_storage_context_wrapper.cc:274: context_ = nullptr; On 2017/05/26 23:43:02, Marijn Kruisselbrink wrote: ...
3 years, 7 months ago (2017-05-27 01:59:04 UTC) #73
Marijn Kruisselbrink
https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/320001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode352 content/browser/dom_storage/dom_storage_context_wrapper.cc:352: if (!context_) On 2017/05/27 at 01:59:03, michaeln wrote: > ...
3 years, 6 months ago (2017-05-30 20:53:56 UTC) #74
Marijn Kruisselbrink
okay, the TaskScheduler DCHECK I was hitting in the one unit tests was removed, so ...
3 years, 6 months ago (2017-06-02 23:03:34 UTC) #86
Marijn Kruisselbrink
On 2017/06/02 at 23:03:34, Marijn Kruisselbrink wrote: > okay, the TaskScheduler DCHECK I was hitting ...
3 years, 6 months ago (2017-06-05 19:32:52 UTC) #89
michaeln
> michaeln: does this look good to you now? lgtm
3 years, 6 months ago (2017-06-05 20:18:07 UTC) #90
Marijn Kruisselbrink
+jam for content OWNERS +dcheng for security review as requested in content/browser/renderer_host/render_process_host_impl.cc
3 years, 6 months ago (2017-06-05 20:24:19 UTC) #92
jam
On 2017/06/05 20:24:19, Marijn Kruisselbrink wrote: > +jam for content OWNERS > +dcheng for security ...
3 years, 6 months ago (2017-06-06 17:15:58 UTC) #93
Marijn Kruisselbrink
dcheng: ping?
3 years, 6 months ago (2017-06-06 20:47:53 UTC) #98
dcheng
https://codereview.chromium.org/2847013002/diff/400001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/400001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode52 content/browser/dom_storage/dom_storage_context_wrapper.cc:52: auto infos = base::MakeUnique<std::vector<LocalStorageUsageInfo>>(); Out of curiosity: why wrap ...
3 years, 6 months ago (2017-06-06 22:22:56 UTC) #99
Marijn Kruisselbrink
https://codereview.chromium.org/2847013002/diff/400001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/400001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode52 content/browser/dom_storage/dom_storage_context_wrapper.cc:52: auto infos = base::MakeUnique<std::vector<LocalStorageUsageInfo>>(); On 2017/06/06 at 22:22:55, dcheng ...
3 years, 6 months ago (2017-06-06 22:52:35 UTC) #100
dcheng
ipc lgtm, thanks https://codereview.chromium.org/2847013002/diff/400001/content/browser/dom_storage/dom_storage_context_wrapper.cc File content/browser/dom_storage/dom_storage_context_wrapper.cc (right): https://codereview.chromium.org/2847013002/diff/400001/content/browser/dom_storage/dom_storage_context_wrapper.cc#newcode52 content/browser/dom_storage/dom_storage_context_wrapper.cc:52: auto infos = base::MakeUnique<std::vector<LocalStorageUsageInfo>>(); On 2017/06/06 ...
3 years, 6 months ago (2017-06-06 23:02:44 UTC) #101
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/2847013002/400001
3 years, 6 months ago (2017-06-06 23:13:45 UTC) #103
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 23:18:44 UTC) #106
Message was sent while issue was closed.
Committed patchset #20 (id:400001) as
https://chromium.googlesource.com/chromium/src/+/c8e2b27f71c6792fa1072fa98a22...

Powered by Google App Engine
This is Rietveld 408576698