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

Issue 11234032: Webview tag creation should be using storage partitions. (Closed)

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

Description

Webview tag creation should be using storage partitions. BUG=145500, 149726 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=166639

Patch Set 1 : #

Patch Set 2 : Merging with profile refactor. #

Patch Set 3 : Renaming, DOM Storage test. #

Patch Set 4 : Moving InitializeResourceContext to BrowserContext. #

Patch Set 5 : Moving InitializeResourceContext around. #

Patch Set 6 : Added IndexedDB test. #

Total comments: 80

Patch Set 7 : Fixes for all comments, but the web_view_browsertest. #

Patch Set 8 : Fixes in the test. #

Total comments: 17

Patch Set 9 : First half of comments addressed. #

Patch Set 10 : Fixes for Charlie's initial comments. #

Total comments: 15

Patch Set 11 : More fixes on Albert's comments. #

Total comments: 34

Patch Set 12 : More fixes. #

Patch Set 13 : Removing the custom format of partition id. #

Total comments: 50

Patch Set 14 : Fixes for all comments so far. #

Total comments: 22

Patch Set 15 : Fixing remaining nits. #

Total comments: 3

Patch Set 16 : Removing the SessionStorage test for isolated apps. #

Patch Set 17 : Removing logging I've let creep in. #

Patch Set 18 : Disabling session storage test for isolated apps. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+766 lines, -255 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +67 lines, -61 lines 0 comments Download
M chrome/browser/extensions/isolated_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/web_view_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +311 lines, -40 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -20 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -10 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view_isolation/main.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view_isolation/storage.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +86 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view_isolation/storage1.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view_isolation/storage2.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +31 lines, -13 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +29 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +56 lines, -6 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +22 lines, -17 lines 0 comments Download
M content/browser/storage_partition_impl_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +14 lines, -3 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +26 lines, -21 lines 0 comments Download
A content/browser/storage_partition_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +58 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 16 1 chunk +2 lines, -9 lines 0 comments Download
M content/common/url_schemes.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +17 lines, -17 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -6 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
nasko
Hey guys, Let's start the review on this CL. Thanks, Nasko
8 years, 1 month ago (2012-11-02 18:13:43 UTC) #1
awong
Looking pretty good. Most (all?) of my comments are style related. http://codereview.chromium.org/11234032/diff/19009/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): ...
8 years, 1 month ago (2012-11-02 21:56:13 UTC) #2
nasko
I've made changes for the issues Albert raised. I didn't address all of the ones ...
8 years, 1 month ago (2012-11-03 00:36:24 UTC) #3
nasko
I've made the fixes for the remaining comments in the browser test. I hope this ...
8 years, 1 month ago (2012-11-05 17:37:11 UTC) #4
awong
Didn't quite finish the review, but need to run to interview. Here's the first 1/2 ...
8 years, 1 month ago (2012-11-05 18:00:33 UTC) #5
nasko
https://codereview.chromium.org/11234032/diff/26009/chrome/browser/extensions/web_view_browsertest.cc File chrome/browser/extensions/web_view_browsertest.cc (right): https://codereview.chromium.org/11234032/diff/26009/chrome/browser/extensions/web_view_browsertest.cc#newcode208 chrome/browser/extensions/web_view_browsertest.cc:208: // This test DOM storage isolation for packaged apps ...
8 years, 1 month ago (2012-11-05 18:09:06 UTC) #6
Charlie Reis
I started to review, but I might need to read the whole discussion to catch ...
8 years, 1 month ago (2012-11-05 18:15:37 UTC) #7
nasko
https://codereview.chromium.org/11234032/diff/26009/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/11234032/diff/26009/chrome/browser/chrome_content_browser_client.cc#newcode478 chrome/browser/chrome_content_browser_client.cc:478: bool in_memory; On 2012/11/05 18:15:37, creis wrote: > Should ...
8 years, 1 month ago (2012-11-05 19:20:26 UTC) #8
awong
https://codereview.chromium.org/11234032/diff/19009/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/11234032/diff/19009/chrome/browser/chrome_content_browser_client.cc#newcode519 chrome/browser/chrome_content_browser_client.cc:519: StringTokenizer t(partition_id, ":"); On 2012/11/02 21:56:13, awong wrote: > ...
8 years, 1 month ago (2012-11-05 20:11:18 UTC) #9
nasko
Missed one file in the earlier iterations, now fixed. https://codereview.chromium.org/11234032/diff/19009/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/11234032/diff/19009/chrome/browser/chrome_content_browser_client.cc#newcode519 chrome/browser/chrome_content_browser_client.cc:519: ...
8 years, 1 month ago (2012-11-05 23:06:58 UTC) #10
awong
Couple more minor comments. Let's talk out the partition_id formatting tomorrow. https://codereview.chromium.org/11234032/diff/27027/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): ...
8 years, 1 month ago (2012-11-05 23:48:36 UTC) #11
Charlie Reis
https://codereview.chromium.org/11234032/diff/31024/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/11234032/diff/31024/chrome/browser/chrome_content_browser_client.cc#newcode561 chrome/browser/chrome_content_browser_client.cc:561: // out of it. The format is: guest://app_id/persist?partition_name nit: ...
8 years, 1 month ago (2012-11-06 00:17:17 UTC) #12
nasko
I've addressed all comments, but two - the CHECK on partition_name and the need of ...
8 years, 1 month ago (2012-11-06 01:21:51 UTC) #13
nasko
Fixed the two outstanding issues - the custom format and the CHECK on partition name. ...
8 years, 1 month ago (2012-11-07 00:33:57 UTC) #14
awong
looking pretty close. Last round of comments. http://codereview.chromium.org/11234032/diff/30099/content/browser/browser_context.cc File content/browser/browser_context.cc (right): http://codereview.chromium.org/11234032/diff/30099/content/browser/browser_context.cc#newcode52 content/browser/browser_context.cc:52: if (browser_context->IsOffTheRecord()) ...
8 years, 1 month ago (2012-11-07 01:14:11 UTC) #15
Charlie Reis
Quick comments on content/public. Rest of review on the way. http://codereview.chromium.org/11234032/diff/30099/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): http://codereview.chromium.org/11234032/diff/30099/content/public/browser/content_browser_client.h#newcode277 ...
8 years, 1 month ago (2012-11-07 01:40:54 UTC) #16
awong
http://codereview.chromium.org/11234032/diff/30099/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): http://codereview.chromium.org/11234032/diff/30099/content/public/browser/content_browser_client.h#newcode283 content/public/browser/content_browser_client.h:283: // persisted, the |in_memory| value should be set to ...
8 years, 1 month ago (2012-11-07 01:43:46 UTC) #17
awong
one more comment. If you don't want to integrate this change, no worries. I'll do ...
8 years, 1 month ago (2012-11-07 02:15:42 UTC) #18
Charlie Reis
I do think we're close, but some comments and questions below. Thanks! http://codereview.chromium.org/11234032/diff/30099/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc ...
8 years, 1 month ago (2012-11-07 02:36:34 UTC) #19
nasko
https://codereview.chromium.org/11234032/diff/31024/chrome/browser/extensions/web_view_browsertest.cc File chrome/browser/extensions/web_view_browsertest.cc (right): https://codereview.chromium.org/11234032/diff/31024/chrome/browser/extensions/web_view_browsertest.cc#newcode39 chrome/browser/extensions/web_view_browsertest.cc:39: content::WebContents** contents1, On 2012/11/06 00:17:18, creis wrote: > These ...
8 years, 1 month ago (2012-11-07 17:47:01 UTC) #20
awong
LGTM w/ nits http://codereview.chromium.org/11234032/diff/21053/content/browser/browser_context.cc File content/browser/browser_context.cc (right): http://codereview.chromium.org/11234032/diff/21053/content/browser/browser_context.cc#newcode40 content/browser/browser_context.cc:40: StoragePartition* GetStoragePartitionFromConfig( Can the parameters move ...
8 years, 1 month ago (2012-11-07 18:14:30 UTC) #21
Charlie Reis
Almost there. nit: Change CL title and description to Webview tag http://codereview.chromium.org/11234032/diff/21053/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): ...
8 years, 1 month ago (2012-11-07 18:38:36 UTC) #22
nasko
https://codereview.chromium.org/11234032/diff/21053/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/11234032/diff/21053/chrome/browser/chrome_content_browser_client.cc#newcode14 chrome/browser/chrome_content_browser_client.cc:14: #include "base/string_split.h" On 2012/11/07 18:38:36, creis wrote: > Do ...
8 years, 1 month ago (2012-11-07 18:48:05 UTC) #23
Charlie Reis
Thanks! LGTM with nit. http://codereview.chromium.org/11234032/diff/28040/content/browser/storage_partition_impl.h File content/browser/storage_partition_impl.h (right): http://codereview.chromium.org/11234032/diff/28040/content/browser/storage_partition_impl.h#newcode87 content/browser/storage_partition_impl.h:87: // embedded nuls, the values ...
8 years, 1 month ago (2012-11-07 18:57:09 UTC) #24
nasko
Adding OWNERS reviewers kalman@ -> chrome/browser/extensions/ mirandac@ -> chrome/browser/profiles/ sky@ -> chrome/ and chrome/test
8 years, 1 month ago (2012-11-07 19:25:14 UTC) #25
not at google - send to devlin
lgtm
8 years, 1 month ago (2012-11-07 19:28:47 UTC) #26
Miranda Callahan
On 2012/11/07 19:28:47, kalman wrote: > lgtm profiles/* LGTM
8 years, 1 month ago (2012-11-07 19:29:43 UTC) #27
sky
LGTM https://codereview.chromium.org/11234032/diff/28040/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/11234032/diff/28040/chrome/browser/chrome_content_browser_client.cc#newcode494 chrome/browser/chrome_content_browser_client.cc:494: GURL guest_url(partition_id); What's with the white space here? ...
8 years, 1 month ago (2012-11-07 22:21:05 UTC) #28
Charlie Reis
Still LGTM after disabling SessionStorage test.
8 years, 1 month ago (2012-11-07 23:43:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/11234032/31046
8 years, 1 month ago (2012-11-08 04:05:45 UTC) #30
commit-bot: I haz the power
8 years, 1 month ago (2012-11-08 08:31:55 UTC) #31
Change committed as 166639

Powered by Google App Engine
This is Rietveld 408576698