| 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 d53e6e22953fe1102cb7b36a49c6238aaf470b20..aa459a798a8096c9e736d92f045ada19ee84f50b 100644
|
| --- a/ppapi/native_client/src/trusted/plugin/plugin.cc
|
| +++ b/ppapi/native_client/src/trusted/plugin/plugin.cc
|
| @@ -484,10 +484,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 */
|
|
|