| Index: content/ppapi_plugin/ppapi_thread.cc
|
| diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
|
| index 4d8938724ebd42fb96a5e45b1113286e28037521..2200a758db94dda23fd20f0da6384938152271d0 100644
|
| --- a/content/ppapi_plugin/ppapi_thread.cc
|
| +++ b/content/ppapi_plugin/ppapi_thread.cc
|
| @@ -208,7 +208,10 @@ base::SharedMemoryHandle PpapiThread::ShareSharedMemoryHandleWithRemote(
|
| #if defined(OS_WIN)
|
| if (peer_handle_.IsValid()) {
|
| DCHECK(is_broker_);
|
| - return IPC::GetFileHandleForProcess(handle, peer_handle_.Get(), false);
|
| + IPC::PlatformFileForTransit platform_file = IPC::GetFileHandleForProcess(
|
| + handle.GetHandle(), peer_handle_.Get(), false);
|
| + base::ProcessId pid = base::GetProcId(peer_handle_.Get());
|
| + return base::SharedMemoryHandle(platform_file, pid);
|
| }
|
| #endif
|
|
|
|
|