Index: gpu/ipc/service/gpu_channel_test_common.cc |
diff --git a/gpu/ipc/service/gpu_channel_test_common.cc b/gpu/ipc/service/gpu_channel_test_common.cc |
index e00248c3c13d48c73149edea560c0e88c898f07f..f25e0c6a3b402c7a423f1e2aa0eb7673153a5db2 100644 |
--- a/gpu/ipc/service/gpu_channel_test_common.cc |
+++ b/gpu/ipc/service/gpu_channel_test_common.cc |
@@ -155,9 +155,7 @@ void GpuChannelTestCommon::HandleMessage(GpuChannel* channel, |
base::SharedMemoryHandle GpuChannelTestCommon::GetSharedHandle() { |
base::SharedMemory shared_memory; |
shared_memory.CreateAnonymous(10); |
- base::SharedMemoryHandle shmem_handle; |
- shared_memory.ShareToProcess(base::GetCurrentProcessHandle(), &shmem_handle); |
- return shmem_handle; |
+ return shared_memory.handle().Duplicate(); |
} |
} // namespace gpu |