| Index: ppapi/native_client/src/trusted/plugin/plugin.cc
|
| diff --git a/ppapi/native_client/src/trusted/plugin/plugin.cc b/ppapi/native_client/src/trusted/plugin/plugin.cc
|
| index c7b7fcc4971e0297b6bd93d837f3969dd473fc68..22afedb706c7fb97174e8e51379d989b15dae75f 100644
|
| --- a/ppapi/native_client/src/trusted/plugin/plugin.cc
|
| +++ b/ppapi/native_client/src/trusted/plugin/plugin.cc
|
| @@ -485,10 +485,11 @@ void Plugin::BitcodeDidTranslate(int32_t pp_error) {
|
| }
|
|
|
| // Inform JavaScript that we successfully translated the bitcode to a nexe.
|
| - nacl::scoped_ptr<nacl::DescWrapper>
|
| - wrapper(pnacl_coordinator_.get()->ReleaseTranslatedFD());
|
| + PP_FileHandle handle = pnacl_coordinator_->TakeTranslatedFileHandle();
|
| + int32_t fd = ConvertFileDescriptor(handle, true);
|
| + nacl::DescWrapper* wrapper = wrapper_factory()->MakeFileDesc(fd, O_RDONLY);
|
| LoadNaClModule(
|
| - wrapper.release(),
|
| + wrapper,
|
| false, /* uses_nonsfi_mode */
|
| false, /* enable_dyncode_syscalls */
|
| false, /* enable_exception_handling */
|
|
|