Index: device/gamepad/gamepad_provider.cc |
diff --git a/device/gamepad/gamepad_provider.cc b/device/gamepad/gamepad_provider.cc |
index a560aebc9328820560b5bbb789ca28069490475c..ab480414b4ee4b8e0bcbfd3928e61a837bfd8a76 100644 |
--- a/device/gamepad/gamepad_provider.cc |
+++ b/device/gamepad/gamepad_provider.cc |
@@ -82,12 +82,8 @@ GamepadProvider::~GamepadProvider() { |
DCHECK(data_fetchers_.empty()); |
} |
-base::SharedMemoryHandle GamepadProvider::GetSharedMemoryHandleForProcess( |
- base::ProcessHandle process) { |
- base::SharedMemoryHandle renderer_handle; |
- gamepad_shared_buffer_->shared_memory()->ShareToProcess(process, |
- &renderer_handle); |
- return renderer_handle; |
+base::SharedMemoryHandle GamepadProvider::DuplicateSharedMemoryHandle() { |
+ return gamepad_shared_buffer_->shared_memory()->handle().Duplicate(); |
} |
mojo::ScopedSharedBufferHandle GamepadProvider::GetSharedBufferHandle() { |