| 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
|
|
|