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

Unified Diff: content/browser/fileapi/browser_file_system_helper.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/fileapi/browser_file_system_helper.cc
diff --git a/content/browser/fileapi/browser_file_system_helper.cc b/content/browser/fileapi/browser_file_system_helper.cc
index 6df6f1f381cd8441475e3156ef13955af1e56dd7..094f35ac30455d42b845c80c43d23abaead0243c 100644
--- a/content/browser/fileapi/browser_file_system_helper.cc
+++ b/content/browser/fileapi/browser_file_system_helper.cc
@@ -98,27 +98,6 @@ bool FileSystemURLIsValid(
return context->GetFileSystemBackend(url.type()) != NULL;
}
-bool CheckFileSystemPermissionsForProcess(
- fileapi::FileSystemContext* context, int process_id,
- const fileapi::FileSystemURL& url, int permissions,
- base::PlatformFileError* error) {
- DCHECK(error);
-
- if (!FileSystemURLIsValid(context, url)) {
- *error = base::PLATFORM_FILE_ERROR_INVALID_URL;
- return false;
- }
-
- if (!ChildProcessSecurityPolicyImpl::GetInstance()->
- HasPermissionsForFileSystemFile(process_id, url, permissions)) {
- *error = base::PLATFORM_FILE_ERROR_SECURITY;
- return false;
- }
-
- *error = base::PLATFORM_FILE_OK;
- return true;
-}
-
void SyncGetPlatformPath(fileapi::FileSystemContext* context,
int process_id,
const GURL& path,
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.h ('k') | content/browser/fileapi/fileapi_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698