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

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed)

Created:
8 years, 3 months ago by awong
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, tfarina, achuith+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, markusheintz_, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nasko, Charlie Reis
Visibility:
Public.

Description

continuing from http://http://codereview.chromium.org/10823241 This intentionally doesn't change the ChromeOS behavior at all. They all still use the default FileSystemContext. This code also exposes the normal and media URLRequestGetters via the StoragePartition, and cleans up a bit of code that was accessing the URLRequestGetter in odd ways. Also, it makes Workers correctly use the Media Cache for Media fetches. TBR=benjhyden,sky,davemoore,piman,mkwst,kalman BUG=85121 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157284

Patch Set 1 #

Patch Set 2 : move everything back to defaults #

Patch Set 3 : Expose URLRequestContext in StoragePartition #

Patch Set 4 : I think it works now. #

Patch Set 5 : Stupid Gmock: The revenge. #

Patch Set 6 : patch unittest fix from michael #

Total comments: 12

Patch Set 7 : Fix nits #

Patch Set 8 : rename GetRequestContextForIsolatedApp. #

Patch Set 9 : merged to ToT #

Patch Set 10 : merged ToT. #

Patch Set 11 : corrected merge mistakes #

Patch Set 12 : style fix #

Patch Set 13 : will gitcl work? #

Patch Set 14 : drop an unnecessary reference and see if win_rel works. #

Total comments: 6

Patch Set 15 : stupid regexp #

Total comments: 2

Patch Set 16 : addressed comments. #

Patch Set 17 : more fixes #

Patch Set 18 : another compile error #

Patch Set 19 : undo unittest change. #

Patch Set 20 : remove useless headers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+491 lines, -315 lines) Patch
M chrome/browser/browsing_data/browsing_data_file_system_helper.h View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_file_system_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_file_system_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/external_filesystem_apitest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler_api.cc View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_handler_api_test.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_apitest.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/drive_system_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/data_deleter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 10 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 10 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/cookies_view_handler.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -5 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -9 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 2 2 chunks +0 lines, -167 lines 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 15 2 chunks +31 lines, -8 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl_map.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +191 lines, -14 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 6 7 8 5 chunks +22 lines, -12 lines 0 comments Download
M content/browser/worker_host/worker_storage_partition.h View 1 2 3 4 chunks +21 lines, -4 lines 0 comments Download
M content/browser/worker_host/worker_storage_partition.cc View 1 2 3 4 5 6 3 chunks +11 lines, -2 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -6 lines 0 comments Download
M content/public/browser/storage_partition.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
awong
Hi Michael, This builds on your appcache CL (it's rebased on top of it). Hopefully ...
8 years, 3 months ago (2012-09-14 06:37:06 UTC) #1
michaeln
only one real question about default vs via siteIntance in the chromeos stuff http://codereview.chromium.org/10909182/diff/6005/chrome/browser/chromeos/extensions/file_browser_private_api.cc File ...
8 years, 3 months ago (2012-09-15 01:48:32 UTC) #2
awong
Thanks for the review. Comments addressed. FYI, working on renaming the Profile accessor for storage ...
8 years, 3 months ago (2012-09-15 02:05:01 UTC) #3
michaeln
lgtm
8 years, 3 months ago (2012-09-15 05:54:29 UTC) #4
awong
+creis for owners.
8 years, 3 months ago (2012-09-17 18:13:33 UTC) #5
awong
Okay, merged up and ready for review. FYI, there actually are successful try runs, but ...
8 years, 3 months ago (2012-09-17 19:24:59 UTC) #6
Charlie Reis
Looks good. A few minor questions, but nothing blocking. http://codereview.chromium.org/10909182/diff/2044/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): http://codereview.chromium.org/10909182/diff/2044/chrome/browser/profiles/profile_impl.h#newcode97 chrome/browser/profiles/profile_impl.h:97: ...
8 years, 3 months ago (2012-09-17 22:51:12 UTC) #7
awong
PTAL http://codereview.chromium.org/10909182/diff/2044/chrome/browser/profiles/profile_impl.h File chrome/browser/profiles/profile_impl.h (right): http://codereview.chromium.org/10909182/diff/2044/chrome/browser/profiles/profile_impl.h#newcode97 chrome/browser/profiles/profile_impl.h:97: virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition( On 2012/09/17 22:51:12, creis wrote: ...
8 years, 3 months ago (2012-09-17 23:10:19 UTC) #8
Charlie Reis
LGTM!
8 years, 3 months ago (2012-09-17 23:13:17 UTC) #9
awong
TBRing places that basically just had a simple API change.
8 years, 3 months ago (2012-09-18 03:03:16 UTC) #10
Mike West
On 2012/09/18 03:03:16, awong wrote: > TBRing places that basically just had a simple API ...
8 years, 3 months ago (2012-09-18 05:37:25 UTC) #11
not at google - send to devlin
Putting me both in TBR and the reviewers list is confusing, I'm not sure whether ...
8 years, 3 months ago (2012-09-18 05:41:24 UTC) #12
benjhayden
downloads_api_unittest.cc and download_manager_impl_unittest.cc LGTM
8 years, 3 months ago (2012-09-18 16:11:03 UTC) #13
piman
8 years, 3 months ago (2012-09-18 17:23:42 UTC) #14
LGTM for content/

Powered by Google App Engine
This is Rietveld 408576698