Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / nacl / renderer / manifest_service_channel.cc
index 407b92b..cb39703 100644 (file)
@@ -85,13 +85,13 @@ void ManifestServiceChannel::OnOpenResource(
 
 #if !defined(OS_WIN)
 void ManifestServiceChannel::DidOpenResource(
-    IPC::Message* reply, const base::PlatformFile& platform_file) {
+    IPC::Message* reply, base::File file) {
   // Here, PlatformFileForTransit is alias of base::FileDescriptor.
   PpapiHostMsg_OpenResource::WriteReplyParams(
       reply,
       ppapi::proxy::SerializedHandle(
           ppapi::proxy::SerializedHandle::FILE,
-          base::FileDescriptor(platform_file, true)));
+          base::FileDescriptor(file.Pass())));
   Send(reply);
 }
 #endif