Index: ppapi/proxy/gamepad_resource.cc |
diff --git a/ppapi/proxy/gamepad_resource.cc b/ppapi/proxy/gamepad_resource.cc |
index 1cfc0419705d0acc62efb3a4a5a5c7211def6ba0..67253034c0dff8749b641074a0e797448609c3db 100644 |
--- a/ppapi/proxy/gamepad_resource.cc |
+++ b/ppapi/proxy/gamepad_resource.cc |
@@ -103,7 +103,7 @@ void GamepadResource::Sample(PP_Instance /* instance */, |
void GamepadResource::OnPluginMsgSendMemory( |
const ResourceMessageReplyParams& params) { |
// On failure, the handle will be null and the CHECK below will be tripped. |
- base::SharedMemoryHandle handle = base::SharedMemory::NULLHandle(); |
+ base::SharedMemoryHandle handle; |
params.TakeSharedMemoryHandleAtIndex(0, &handle); |
shared_memory_.reset(new base::SharedMemory(handle, true)); |