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 07d88b18ad3bd5a68d8d8ebb384fcb30245f2e26..6593707253a8be8c87d9f6337c6ab1b44baa6f6a 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->url()); |
- if (!policy->HasPermissionsForFileSystemFile( |
- child_id, url, fileapi::kReadFilePermissions)) { |
+ if (!policy->CanReadFileSystemFile(child_id, url)) { |
NOTREACHED() << "Denied unauthorized upload of " |
<< iter->url().spec(); |
return false; |