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

Unified Diff: ppapi/proxy/video_decoder_resource_unittest.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Rebase. 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
Index: ppapi/proxy/video_decoder_resource_unittest.cc
diff --git a/ppapi/proxy/video_decoder_resource_unittest.cc b/ppapi/proxy/video_decoder_resource_unittest.cc
index 8f80d7a71cefb650939d95cf22f6a112eb032c16..652b43d09695202f4544bfd486cd69a92f9399a7 100644
--- a/ppapi/proxy/video_decoder_resource_unittest.cc
+++ b/ppapi/proxy/video_decoder_resource_unittest.cc
@@ -152,8 +152,7 @@ class VideoDecoderResourceTest : public PluginProxyTest {
base::SharedMemory shm;
if (expected_shm_msg) {
shm.CreateAnonymous(kShmSize);
- shm_handle.reset(new base::SharedMemoryHandle());
- shm.ShareToProcess(base::GetCurrentProcessHandle(), shm_handle.get());
+ shm_handle.reset(new base::SharedMemoryHandle(shm.handle().Duplicate()));
serialized_handle.reset(new SerializedHandle(*shm_handle, kShmSize));
shm_msg_handler.set_serialized_handle(serialized_handle.get());
}

Powered by Google App Engine
This is Rietveld 408576698