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

Unified Diff: content/browser/speech/speech_recognizer_unittest.cc

Issue 9433006: Remove GetAudioManager and GetMediaStreamManager from ResourceContext. The reason is the content mo… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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
« no previous file with comments | « content/browser/speech/speech_recognizer.cc ('k') | content/public/browser/browser_main_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognizer_unittest.cc
===================================================================
--- content/browser/speech/speech_recognizer_unittest.cc (revision 123165)
+++ content/browser/speech/speech_recognizer_unittest.cc (working copy)
@@ -35,8 +35,9 @@
error_(content::SPEECH_INPUT_ERROR_NONE),
volume_(-1.0f) {
recognizer_ = new SpeechRecognizer(this, 1, std::string(), std::string(),
- NULL, audio_manager_.get(), false,
- std::string(), std::string());
+ NULL, false, std::string(),
+ std::string());
+ recognizer_->SetAudioManagerForTesting(audio_manager_.get());
int audio_packet_length_bytes =
(SpeechRecognizer::kAudioSampleRate *
SpeechRecognizer::kAudioPacketIntervalMs *
« no previous file with comments | « content/browser/speech/speech_recognizer.cc ('k') | content/public/browser/browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698