Index: content/browser/renderer_host/media/audio_renderer_host.cc |
diff --git a/content/browser/renderer_host/media/audio_renderer_host.cc b/content/browser/renderer_host/media/audio_renderer_host.cc |
index 460e7b3786b6f845bbe75e031d44d05cfa2f8313..1061e599ce56ee236899472ef5d72775be61715b 100644 |
--- a/content/browser/renderer_host/media/audio_renderer_host.cc |
+++ b/content/browser/renderer_host/media/audio_renderer_host.cc |
@@ -113,11 +113,12 @@ void AudioRendererHost::OnStreamCreated( |
return; |
} |
- base::SharedMemoryHandle foreign_memory_handle; |
base::SyncSocket::TransitDescriptor socket_descriptor; |
size_t shared_memory_size = shared_memory->requested_size(); |
- if (!(shared_memory->ShareToProcess(PeerHandle(), &foreign_memory_handle) && |
+ base::SharedMemoryHandle foreign_memory_handle = |
+ shared_memory->handle().Duplicate(); |
+ if (!(foreign_memory_handle.IsValid() && |
foreign_socket->PrepareTransitDescriptor(PeerHandle(), |
&socket_descriptor))) { |
// Something went wrong in preparing the IPC handles. |