Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: content/renderer/media/speech_recognition_audio_sink_unittest.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 =
« no previous file with comments | « content/renderer/media/audio_message_filter_unittest.cc ('k') | content/renderer/pepper/pepper_platform_audio_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698