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

Issue 11366140: Fix on-disk structure for persistent storage in webview tags. (Closed)

Created:
8 years, 1 month ago by awong
Modified:
8 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, irobert
Visibility:
Public.

Description

Fix on-disk structure for persistent storage in webview tags. BUG=159464 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167334

Patch Set 1 #

Patch Set 2 : fix comment #

Total comments: 8

Patch Set 3 : rebased #

Patch Set 4 : start of test uploaded #

Patch Set 5 : test for cookie persistence #

Patch Set 6 : use fragments #

Patch Set 7 : rebased #

Total comments: 20

Patch Set 8 : address Nasko's comments #

Total comments: 7

Patch Set 9 : address Charlie's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+398 lines, -196 lines) Patch
M chrome/browser/extensions/web_view_browsertest.cc View 1 2 3 4 5 6 7 9 chunks +221 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view_isolation/main.js View 1 2 3 4 5 1 chunk +14 lines, -2 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -54 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 chunks +6 lines, -53 lines 0 comments Download
M content/browser/storage_partition_impl_map.h View 1 2 3 2 chunks +50 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 4 chunks +86 lines, -4 lines 0 comments Download
A + content/browser/storage_partition_impl_map_unittest.cc View 1 2 3 2 chunks +12 lines, -12 lines 0 comments Download
D content/browser/storage_partition_impl_unittest.cc View 1 2 3 1 chunk +0 lines, -58 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
awong
Hey Nasko, Here's the first cut at using a hash. Pretty simple change with a ...
8 years, 1 month ago (2012-11-08 00:33:21 UTC) #1
nasko
Some initial comments. Awesome job on the description of the reasoning! https://codereview.chromium.org/11366140/diff/2001/content/browser/storage_partition_impl.h File content/browser/storage_partition_impl.h (right): ...
8 years, 1 month ago (2012-11-08 05:03:54 UTC) #2
awong
Addressed your comments, and started on a unittest, but stopped because I don't believe the ...
8 years, 1 month ago (2012-11-09 02:51:22 UTC) #3
nasko
On 2012/11/09 02:51:22, awong wrote: > Addressed your comments, and started on a unittest, but ...
8 years, 1 month ago (2012-11-09 04:19:23 UTC) #4
awong
Blah...I should have remember that. No wonder nothing looks like it works. On Thu, Nov ...
8 years, 1 month ago (2012-11-09 06:43:09 UTC) #5
awong
Ready for real review.
8 years, 1 month ago (2012-11-10 01:02:32 UTC) #6
awong
On 2012/11/10 01:02:32, awong wrote: > Ready for real review. Note, it's missing unittests for ...
8 years, 1 month ago (2012-11-10 01:03:03 UTC) #7
nasko
A few minor things and I think it will be ready to go. https://codereview.chromium.org/11366140/diff/1011/chrome/browser/extensions/web_view_browsertest.cc File ...
8 years, 1 month ago (2012-11-12 16:47:28 UTC) #8
awong
PTAL http://codereview.chromium.org/11366140/diff/1011/chrome/browser/extensions/web_view_browsertest.cc File chrome/browser/extensions/web_view_browsertest.cc (right): http://codereview.chromium.org/11366140/diff/1011/chrome/browser/extensions/web_view_browsertest.cc#newcode115 chrome/browser/extensions/web_view_browsertest.cc:115: On 2012/11/12 16:47:28, nasko wrote: > Why the ...
8 years, 1 month ago (2012-11-12 21:36:16 UTC) #9
nasko
LGTM
8 years, 1 month ago (2012-11-12 22:12:50 UTC) #10
awong
OWNERS: creis -- content kalman -- extensions
8 years, 1 month ago (2012-11-12 22:19:34 UTC) #11
Charlie Reis
(Adding kalman@ to the reviewers list.) content/ OWNERs LGTM, though I didn't review the actual ...
8 years, 1 month ago (2012-11-12 22:58:19 UTC) #12
not at google - send to devlin
lgtm
8 years, 1 month ago (2012-11-12 22:59:19 UTC) #13
awong
I'm pretty confident this is all good. We got Ben Laurie to sanity check that ...
8 years, 1 month ago (2012-11-12 23:49:16 UTC) #14
Charlie Reis
On 2012/11/12 23:49:16, awong wrote: > I'm pretty confident this is all good. We got ...
8 years, 1 month ago (2012-11-13 00:03:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/11366140/14005
8 years, 1 month ago (2012-11-13 00:17:28 UTC) #16
commit-bot: I haz the power
Change committed as 167334
8 years, 1 month ago (2012-11-13 09:11:32 UTC) #17
ericu
http://codereview.chromium.org/11366140/diff/14002/content/browser/storage_partition_impl_map.cc File content/browser/storage_partition_impl_map.cc (right): http://codereview.chromium.org/11366140/diff/14002/content/browser/storage_partition_impl_map.cc#newcode195 content/browser/storage_partition_impl_map.cc:195: // for the "default" extension storage partition and one ...
8 years, 1 month ago (2012-11-14 01:55:19 UTC) #18
akalin
8 years, 1 month ago (2012-11-14 07:05:16 UTC) #19
https://codereview.chromium.org/11366140/diff/14002/content/browser/storage_p...
File content/browser/storage_partition_impl_map.cc (right):

https://codereview.chromium.org/11366140/diff/14002/content/browser/storage_p...
content/browser/storage_partition_impl_map.cc:219: // We assume that all
partition names within one partition domain are
you probably should add that you're assuming that sha256 gives a
close-to-uniform distribution over its output range, as well that any hash
function which takes a prefix of a sha256 hash also gives a close-to-uniform
distribution.

https://codereview.chromium.org/11366140/diff/14002/content/browser/storage_p...
content/browser/storage_partition_impl_map.cc:225: //    p < nroot(1000000,
.99999) ~= 10^-11
i think you mean p < 1 - nroot(...)

I had to look up nroot and think a bit to figure out the notation.  I think it's
clearer as:

p < 1 - 0.99999^(1/1000000)

https://codereview.chromium.org/11366140/diff/14002/content/browser/storage_p...
content/browser/storage_partition_impl_map.cc:230: //    n(p,H) = sqrt(2*H *
ln(1/(1-p)))
from reading the wikipedia article, i think this is a lower bound, i.e.:

n(p, H) > sqrt(...)

which is nice.

Powered by Google App Engine
This is Rietveld 408576698