From 75d02f65d9fce5492014467f15502d17d03038c8 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Fri, 4 Aug 2017 12:15:39 +0300 Subject: [PATCH] Remove base::SharedMemory::ShareToProcess https://codereview.chromium.org/2852803002 --- .../renderer/pepper/pepper_shared_memory_message_filter.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chromium_src/chrome/renderer/pepper/pepper_shared_memory_message_filter.cc b/chromium_src/chrome/renderer/pepper/pepper_shared_memory_message_filter.cc index 9919fb47b03..fb72c2da786 100644 --- a/chromium_src/chrome/renderer/pepper/pepper_shared_memory_message_filter.cc +++ b/chromium_src/chrome/renderer/pepper/pepper_shared_memory_message_filter.cc @@ -49,8 +49,7 @@ void PepperSharedMemoryMessageFilter::OnHostMsgCreateSharedMemory( if (!shm.get()) return; - base::SharedMemoryHandle host_shm_handle; - shm->ShareToProcess(base::GetCurrentProcessHandle(), &host_shm_handle); + base::SharedMemoryHandle host_shm_handle = shm->handle().Duplicate(); *host_handle_id = content::PepperPluginInstance::Get(instance) ->GetVarTracker()