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

Unified Diff: content/browser/fileapi/fileapi_message_filter.cc

Issue 10823273: Integrate external mount points to IsolatedContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros test fix Created 8 years, 4 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/fileapi_message_filter.cc
diff --git a/content/browser/fileapi/fileapi_message_filter.cc b/content/browser/fileapi/fileapi_message_filter.cc
index da6581b5d4d5a24abe3222a91f9a8374afa1a445..2439ad1ec75fd5d84cd8b382242dfb3856ca7391 100644
--- a/content/browser/fileapi/fileapi_message_filter.cc
+++ b/content/browser/fileapi/fileapi_message_filter.cc
@@ -770,11 +770,9 @@ bool FileAPIMessageFilter::HasPermissionsForFile(
// Access permission to the file system overrides the file permission
// (if and only if they accessed via an isolated file system).
- bool success = policy->HasPermissionsForFileSystem(
- process_id_, url.filesystem_id(), permissions);
- if (!success)
- *error = base::PLATFORM_FILE_ERROR_SECURITY;
- return success;
+ if (policy->HasPermissionsForFileSystem(process_id_, url.filesystem_id(),
+ permissions))
+ return true;
kmadhusu 2012/08/14 18:01:13 Don't we need to set *error if HasPermissionsForFi
kinuko 2012/08/20 08:54:35 I needed this hack for cros's external mount point
}
file_path = mount_point_provider->GetPathForPermissionsCheck(url.path());

Powered by Google App Engine
This is Rietveld 408576698