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

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
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 e0e2edcaf852496182be39e515ec5056e6492bd5..6709226a3de9f8eb631d251b541f40f58c84c786 100644
--- a/content/renderer/pepper/ppb_file_ref_impl.cc
+++ b/content/renderer/pepper/ppb_file_ref_impl.cc
@@ -15,6 +15,7 @@
#include "content/renderer/pepper/resource_helper.h"
#include "net/base/escape.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/c/ppb_file_io.h"
#include "ppapi/shared_impl/file_type_conversion.h"
#include "ppapi/shared_impl/time_conversion.h"
#include "ppapi/shared_impl/var.h"
@@ -460,7 +461,7 @@ int32_t PPB_FileRef_Impl::QueryInHost(
plugin_instance->delegate()->GetFileThreadMessageLoopProxy();
if (!plugin_instance->delegate()->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 {

Powered by Google App Engine
This is Rietveld 408576698