Index: content/renderer/media/speech_recognition_audio_sink_unittest.cc |
diff --git a/content/renderer/media/speech_recognition_audio_sink_unittest.cc b/content/renderer/media/speech_recognition_audio_sink_unittest.cc |
index 85847d60dc9b107a00d3e5337c6ee804a4a18070..bf452caed2efd45457a92a2979516ac034e7d9c1 100644 |
--- a/content/renderer/media/speech_recognition_audio_sink_unittest.cc |
+++ b/content/renderer/media/speech_recognition_audio_sink_unittest.cc |
@@ -129,8 +129,8 @@ class FakeSpeechRecognizer { |
shared_memory_.reset(new base::SharedMemory()); |
ASSERT_TRUE(shared_memory_->CreateAndMapAnonymous(kSharedMemorySize)); |
memset(shared_memory_->memory(), 0, kSharedMemorySize); |
- ASSERT_TRUE(shared_memory_->ShareToProcess(base::GetCurrentProcessHandle(), |
- foreign_memory_handle)); |
+ *foreign_memory_handle = shared_memory_->handle().Duplicate(); |
+ ASSERT_TRUE(foreign_memory_handle->IsValid()); |
// Wrap the shared memory for the audio bus. |
media::AudioInputBuffer* buffer = |