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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 23760004: ChildProcessSecurityPolicy: Port FileAPIMessageFilter to use new checks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 5680422029876c241608074be4b38ab433703b8c..5ab0282a35bf04cf9af0b115621492edc0b8b43d 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -216,8 +216,7 @@ bool ShouldServiceRequest(int process_type,
if (iter->type() == ResourceRequestBody::Element::TYPE_FILE_FILESYSTEM) {
fileapi::FileSystemURL url =
file_system_context->CrackURL(iter->filesystem_url());
- if (!policy->HasPermissionsForFileSystemFile(
- child_id, url, fileapi::kReadFilePermissions)) {
+ if (!policy->CanReadFileSystemFile(child_id, url)) {
NOTREACHED() << "Denied unauthorized upload of "
<< iter->filesystem_url().spec();
return false;
« no previous file with comments | « content/browser/fileapi/fileapi_message_filter.cc ('k') | content/browser/renderer_host/pepper/pepper_security_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698