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

Unified Diff: device/gamepad/gamepad_service.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_service.h ('k') | extensions/browser/user_script_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_service.cc
diff --git a/device/gamepad/gamepad_service.cc b/device/gamepad/gamepad_service.cc
index 3335b256473e3e71b5d088b022a216ea36ac17a0..3a86e40623f85848529f5bdd3787755e6c2f9a31 100644
--- a/device/gamepad/gamepad_service.cc
+++ b/device/gamepad/gamepad_service.cc
@@ -140,10 +140,9 @@ void GamepadService::OnGamepadDisconnected(int index, const Gamepad& pad) {
}
}
-base::SharedMemoryHandle GamepadService::GetSharedMemoryHandleForProcess(
- base::ProcessHandle handle) {
+base::SharedMemoryHandle GamepadService::DuplicateSharedMemoryHandle() {
DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
- return provider_->GetSharedMemoryHandleForProcess(handle);
+ return provider_->DuplicateSharedMemoryHandle();
}
mojo::ScopedSharedBufferHandle GamepadService::GetSharedBufferHandle() {
« no previous file with comments | « device/gamepad/gamepad_service.h ('k') | extensions/browser/user_script_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698