Index: content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc |
diff --git a/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc b/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc |
index e57a237c5033c2cf499ef7b22de679e0c09febd1..3d191461c436ff501e558e0efcae16fdbc82b413 100644 |
--- a/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc |
+++ b/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc |
@@ -21,6 +21,7 @@ |
#include "ppapi/c/pp_file_info.h" |
#include "ppapi/c/pp_instance.h" |
#include "ppapi/c/pp_resource.h" |
+#include "ppapi/c/ppb_file_ref.h" |
#include "ppapi/host/dispatch_host_message.h" |
#include "ppapi/host/ppapi_host.h" |
#include "ppapi/proxy/ppapi_messages.h" |
@@ -92,14 +93,14 @@ void PepperInternalFileRefBackend::DidFinish( |
int32_t PepperInternalFileRefBackend::MakeDirectory( |
ppapi::host::ReplyMessageContext reply_context, |
- bool make_ancestors) { |
+ int32_t make_directory_flags) { |
if (!GetFileSystemURL().is_valid()) |
return PP_ERROR_FAILED; |
GetFileSystemContext()->operation_runner()->CreateDirectory( |
GetFileSystemURL(), |
- false, |
- make_ancestors, |
+ !!(make_directory_flags & PP_MAKEDIRECTORYFLAG_EXCLUSIVE), |
+ !!(make_directory_flags & PP_MAKEDIRECTORYFLAG_WITH_ANCESTORS), |
base::Bind(&PepperInternalFileRefBackend::DidFinish, |
weak_factory_.GetWeakPtr(), |
reply_context, |