Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: gpu/ipc/service/gpu_channel_test_common.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | media/audio/audio_input_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | media/audio/audio_input_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698