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

Unified Diff: content/browser/speech/speech_recognizer.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: fix deps 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
Index: content/browser/speech/speech_recognizer.cc
===================================================================
--- content/browser/speech/speech_recognizer.cc (revision 122828)
+++ content/browser/speech/speech_recognizer.cc (working copy)
@@ -62,7 +62,6 @@
const std::string& language,
const std::string& grammar,
net::URLRequestContextGetter* context_getter,
- AudioManager* audio_manager,
bool filter_profanities,
const std::string& hardware_info,
const std::string& origin_url)
@@ -74,7 +73,6 @@
hardware_info_(hardware_info),
origin_url_(origin_url),
context_getter_(context_getter),
- audio_manager_(audio_manager),
codec_(AudioEncoder::CODEC_FLAC),
encoder_(NULL),
endpointer_(kAudioSampleRate),
@@ -114,7 +112,7 @@
AudioParameters params(AudioParameters::AUDIO_PCM_LINEAR, kChannelLayout,
kAudioSampleRate, kNumBitsPerAudioSample,
samples_per_packet);
- audio_controller_ = AudioInputController::Create(audio_manager_, this,
+ audio_controller_ = AudioInputController::Create(AudioManager::Get(), this,
params);
DCHECK(audio_controller_.get());
VLOG(1) << "SpeechRecognizer starting record.";

Powered by Google App Engine
This is Rietveld 408576698