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

Unified Diff: device/gamepad/gamepad_provider.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. 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
« no previous file with comments | « device/gamepad/gamepad_provider.h ('k') | device/gamepad/gamepad_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « device/gamepad/gamepad_provider.h ('k') | device/gamepad/gamepad_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698