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

Unified Diff: webkit/plugins/ppapi/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: webkit/plugins/ppapi/ppb_file_ref_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_file_ref_impl.cc b/webkit/plugins/ppapi/ppb_file_ref_impl.cc
index ce57e7dbefc7c63cfd3e4807d476ec31f79e3cf0..4607e0981bed24edaf47b0b5251c4f7cf842b017 100644
--- a/webkit/plugins/ppapi/ppb_file_ref_impl.cc
+++ b/webkit/plugins/ppapi/ppb_file_ref_impl.cc
@@ -10,6 +10,7 @@
#include "base/strings/utf_string_conversions.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"
@@ -454,7 +455,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