Remove base::SharedMemory::ShareToProcess

https://codereview.chromium.org/2852803002
This commit is contained in:
Aleksei Kuzmin 2017-08-04 12:15:39 +03:00 committed by Cheng Zhao
parent 58e0771e47
commit 75d02f65d9

View file

@ -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()