| Index: content/renderer/pepper/pepper_audio_input_host.cc
|
| diff --git a/content/renderer/pepper/pepper_audio_input_host.cc b/content/renderer/pepper/pepper_audio_input_host.cc
|
| index e96e7ea3d524f6ea1366863a7e275a968af9cb80..1805eb7d3f7aa06e2dc7bbd95dfb086aec575162 100644
|
| --- a/content/renderer/pepper/pepper_audio_input_host.cc
|
| +++ b/content/renderer/pepper/pepper_audio_input_host.cc
|
| @@ -172,9 +172,10 @@ int32_t PepperAudioInputHost::GetRemoteHandles(
|
| if (*remote_socket_handle == IPC::InvalidPlatformFileForTransit())
|
| return PP_ERROR_FAILED;
|
|
|
| - *remote_shared_memory_handle = renderer_ppapi_host_->ShareHandleWithRemote(
|
| - PlatformFileFromSharedMemoryHandle(shared_memory.handle()), false);
|
| - if (*remote_shared_memory_handle == IPC::InvalidPlatformFileForTransit())
|
| + *remote_shared_memory_handle =
|
| + renderer_ppapi_host_->ShareSharedMemoryHandleWithRemote(
|
| + shared_memory.handle());
|
| + if (!base::SharedMemory::IsHandleValid(*remote_shared_memory_handle))
|
| return PP_ERROR_FAILED;
|
|
|
| return PP_OK;
|
|
|