| Index: components/nacl/renderer/plugin/pnacl_translate_thread.cc
|
| diff --git a/components/nacl/renderer/plugin/pnacl_translate_thread.cc b/components/nacl/renderer/plugin/pnacl_translate_thread.cc
|
| index 7f649d0d74f863a357d4240877d3eead19713348..624e8da5293ad839a033a129034f2e8b05821476 100644
|
| --- a/components/nacl/renderer/plugin/pnacl_translate_thread.cc
|
| +++ b/components/nacl/renderer/plugin/pnacl_translate_thread.cc
|
| @@ -168,14 +168,14 @@ ppapi::proxy::SerializedHandle PnaclTranslateThread::GetHandleForSubprocess(
|
|
|
| DCHECK(file->IsValid());
|
| #if defined(OS_WIN)
|
| + HANDLE raw_handle = INVALID_HANDLE_VALUE;
|
| if (!content::BrokerDuplicateHandle(
|
| - file->GetPlatformFile(),
|
| - peer_pid,
|
| - &file_for_transit,
|
| + file->GetPlatformFile(), peer_pid, &raw_handle,
|
| 0, // desired_access is 0 since we're using DUPLICATE_SAME_ACCESS.
|
| DUPLICATE_SAME_ACCESS)) {
|
| return ppapi::proxy::SerializedHandle();
|
| }
|
| + file_for_transit = IPC::PlatformFileForTransit(raw_handle, peer_pid);
|
| #else
|
| file_for_transit = base::FileDescriptor(dup(file->GetPlatformFile()), true);
|
| #endif
|
|
|