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

Unified Diff: content/renderer/pepper/ppb_file_ref_impl.cc

Issue 19723010: Pepper Message Filters: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0044-write-support-remove-child-process-security-policy-bitmask-usage
Patch Set: Created 7 years, 5 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 | « content/renderer/pepper/pepper_helper_impl.cc ('k') | ppapi/proxy/flash_file_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_file_ref_impl.cc
diff --git a/content/renderer/pepper/ppb_file_ref_impl.cc b/content/renderer/pepper/ppb_file_ref_impl.cc
index 875f1bff49797f2e8e21e7aaa29c2ab0a224d664..ad7bb0d8c7a5900fa0c0719640fbd79ff5fe4259 100644
--- a/content/renderer/pepper/ppb_file_ref_impl.cc
+++ b/content/renderer/pepper/ppb_file_ref_impl.cc
@@ -19,6 +19,7 @@
#include "content/renderer/render_thread_impl.h"
#include "net/base/escape.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/c/ppb_file_io.h"
#include "ppapi/host/ppapi_host.h"
#include "ppapi/shared_impl/file_type_conversion.h"
#include "ppapi/shared_impl/time_conversion.h"
@@ -468,7 +469,7 @@ int32_t PPB_FileRef_Impl::QueryInHost(
RenderThreadImpl::current()->GetFileThreadMessageLoopProxy();
if (!plugin_instance->helper()->AsyncOpenFile(
GetSystemPath(),
- base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ,
+ PP_FILEOPENFLAG_READ,
base::Bind(&QueryCallback, task_runner, info, callback)))
return PP_ERROR_FAILED;
} else {
« no previous file with comments | « content/renderer/pepper/pepper_helper_impl.cc ('k') | ppapi/proxy/flash_file_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698