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

Unified Diff: content/browser/child_process_security_policy_impl.cc

Issue 10540070: Make Isolated file system writable only if it is configured so (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | webkit/fileapi/file_system_operation.cc » ('j') | webkit/fileapi/isolated_context.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_security_policy_impl.cc
diff --git a/content/browser/child_process_security_policy_impl.cc b/content/browser/child_process_security_policy_impl.cc
index 5ae03e74c518b572797be1291da06b29cb7174f4..39f5d3866e2947624f94e4843e1bddf480f29ab7 100644
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -360,6 +360,7 @@ void ChildProcessSecurityPolicyImpl::GrantReadFileSystem(
void ChildProcessSecurityPolicyImpl::GrantReadWriteFileSystem(
int child_id, const std::string& filesystem_id) {
+ fileapi::IsolatedContext::GetInstance()->SetWritable(filesystem_id, true);
GrantPermissionsForFileSystem(child_id, filesystem_id,
kReadFilePermissions |
kWriteFilePermissions);
« no previous file with comments | « no previous file | webkit/fileapi/file_system_operation.cc » ('j') | webkit/fileapi/isolated_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698