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

Unified Diff: webkit/fileapi/local_file_system_operation.cc

Issue 10993066: Add oem mount point to cros_mount_provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgot one file Created 8 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: webkit/fileapi/local_file_system_operation.cc
diff --git a/webkit/fileapi/local_file_system_operation.cc b/webkit/fileapi/local_file_system_operation.cc
index f8544d5f61611f0cded8d30ef85320076669d932..3e415a748a743aed2a586d190f2522b03635067d 100644
--- a/webkit/fileapi/local_file_system_operation.cc
+++ b/webkit/fileapi/local_file_system_operation.cc
@@ -738,6 +738,11 @@ base::PlatformFileError LocalFileSystemOperation::SetUp(
if (!url.is_valid())
return base::PLATFORM_FILE_ERROR_INVALID_URL;
+ // Restricted file system is read-only.
+ if (url.type() == fileapi::kFileSystemTypeRestrictedNativeLocal &&
+ mode != SETUP_FOR_READ)
+ return base::PLATFORM_FILE_ERROR_SECURITY;
+
if (!file_system_context()->GetMountPointProvider(
url.type())->IsAccessAllowed(url))
return base::PLATFORM_FILE_ERROR_SECURITY;
« webkit/chromeos/fileapi/cros_mount_point_provider.cc ('K') | « webkit/fileapi/file_system_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698