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 8783e812d94109834a14ee0d27ab3e6d47ffb777..bbb72b81351e7411309a883a0d51e52b31ea7616 100644 |
--- a/content/browser/renderer_host/pepper/pepper_gamepad_host.cc |
+++ b/content/browser/renderer_host/pepper/pepper_gamepad_host.cc |
@@ -37,7 +37,7 @@ PepperGamepadHost::PepperGamepadHost(GamepadService* gamepad_service, |
PepperGamepadHost::~PepperGamepadHost() { |
if (is_started_) |
- gamepad_service_->RemoveConsumer(); |
+ gamepad_service_->RemoveConsumer(this); |
} |
int32_t PepperGamepadHost::OnResourceMessageReceived( |
@@ -55,7 +55,7 @@ int32_t PepperGamepadHost::OnRequestMemory( |
if (is_started_) |
return PP_ERROR_FAILED; |
- gamepad_service_->AddConsumer(); |
+ gamepad_service_->ConsumerBecameActive(this); |
is_started_ = true; |
// Don't send the shared memory back until the user has interacted with the |