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

Unified Diff: content/browser/renderer_host/pepper/pepper_gamepad_host.cc

Issue 200873002: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
Index: content/browser/renderer_host/pepper/pepper_gamepad_host.cc
diff --git a/content/browser/renderer_host/pepper/pepper_gamepad_host.cc b/content/browser/renderer_host/pepper/pepper_gamepad_host.cc
index 818bf24a2745cbcf339f8347d1fbda727e56fc82..3b12ed789436faa40f521cc41b370453264cb836 100644
--- a/content/browser/renderer_host/pepper/pepper_gamepad_host.cc
+++ b/content/browser/renderer_host/pepper/pepper_gamepad_host.cc
@@ -39,7 +39,7 @@ PepperGamepadHost::PepperGamepadHost(GamepadService* gamepad_service,
PepperGamepadHost::~PepperGamepadHost() {
if (is_started_)
- gamepad_service_->RemoveConsumer();
+ gamepad_service_->RemoveConsumer(this);
}
int32_t PepperGamepadHost::OnResourceMessageReceived(
@@ -57,7 +57,7 @@ int32_t PepperGamepadHost::OnRequestMemory(
if (is_started_)
return PP_ERROR_FAILED;
- gamepad_service_->AddConsumer();
+ gamepad_service_->AddConsumer(this);
is_started_ = true;
// Don't send the shared memory back until the user has interacted with the
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698