mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
Remove base::SharedMemory::ShareToProcess
https://codereview.chromium.org/2852803002
This commit is contained in:
committed by
Cheng Zhao
parent
58e0771e47
commit
75d02f65d9
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user