Index: content/ppapi_plugin/ppapi_thread.cc |
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc |
index 1618519a586b3d86901e16ed338cddf95fd05b23..db058138f3a3601c1ac5dda4e802bef80d5d1dcf 100644 |
--- a/content/ppapi_plugin/ppapi_thread.cc |
+++ b/content/ppapi_plugin/ppapi_thread.cc |
@@ -206,7 +206,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 |