Index: content/browser/speech/speech_recognition_manager_impl.cc |
diff --git a/content/browser/speech/speech_recognition_manager_impl.cc b/content/browser/speech/speech_recognition_manager_impl.cc |
index c9e470c29d1173ff87b08894b6d11795e6f4d5f2..ab0d98199ac011d5c1d79e69573e777ffa95c42e 100644 |
--- a/content/browser/speech/speech_recognition_manager_impl.cc |
+++ b/content/browser/speech/speech_recognition_manager_impl.cc |
@@ -61,8 +61,10 @@ SpeechRecognitionManagerImpl* SpeechRecognitionManagerImpl::GetInstance() { |
} |
SpeechRecognitionManagerImpl::SpeechRecognitionManagerImpl( |
+ media::AudioSystem* audio_system, |
MediaStreamManager* media_stream_manager) |
- : media_stream_manager_(media_stream_manager), |
+ : audio_system_(audio_system), |
+ media_stream_manager_(media_stream_manager), |
primary_session_id_(kSessionIDInvalid), |
last_session_id_(kSessionIDInvalid), |
is_dispatching_event_(false), |
@@ -130,11 +132,8 @@ int SpeechRecognitionManagerImpl::CreateSession( |
google_remote_engine->SetConfig(remote_engine_config); |
session->recognizer = new SpeechRecognizerImpl( |
- this, |
- session_id, |
- config.continuous, |
- config.interim_results, |
- google_remote_engine); |
+ this, audio_system_, session_id, config.continuous, |
+ config.interim_results, google_remote_engine); |
#else |
session->recognizer = new SpeechRecognizerImplAndroid(this, session_id); |
#endif |