Index: content/browser/renderer_host/media/audio_input_renderer_host.cc |
diff --git a/content/browser/renderer_host/media/audio_input_renderer_host.cc b/content/browser/renderer_host/media/audio_input_renderer_host.cc |
index 76a8a9d55048e002b551e705e4a7bd66442ad587..64c1a6169988c3430221a478f5f7c953b84e8e5a 100644 |
--- a/content/browser/renderer_host/media/audio_input_renderer_host.cc |
+++ b/content/browser/renderer_host/media/audio_input_renderer_host.cc |
@@ -176,9 +176,9 @@ void AudioInputRendererHost::DoCompleteCreation( |
// Once the audio stream is created then complete the creation process by |
// mapping shared memory and sharing with the renderer process. |
- base::SharedMemoryHandle foreign_memory_handle; |
- if (!entry->shared_memory.ShareToProcess(PeerHandle(), |
- &foreign_memory_handle)) { |
+ base::SharedMemoryHandle foreign_memory_handle = |
+ entry->shared_memory.handle().Duplicate(); |
+ if (!foreign_memory_handle.IsValid()) { |
// If we failed to map and share the shared memory then close the audio |
// stream and send an error message. |
DeleteEntryOnError(entry, MEMORY_SHARING_FAILED); |