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

Unified Diff: content/browser/speech/speech_input_dispatcher_host.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
Index: content/browser/speech/speech_input_dispatcher_host.cc
===================================================================
--- content/browser/speech/speech_input_dispatcher_host.cc (revision 123165)
+++ content/browser/speech/speech_input_dispatcher_host.cc (working copy)
@@ -9,7 +9,6 @@
#include "content/browser/speech/speech_recognizer.h"
#include "content/common/speech_input_messages.h"
#include "content/public/browser/content_browser_client.h"
-#include "content/public/browser/resource_context.h"
#include "content/public/browser/speech_input_preferences.h"
using content::BrowserThread;
@@ -118,12 +117,12 @@
int render_process_id,
net::URLRequestContextGetter* context_getter,
content::SpeechInputPreferences* speech_input_preferences,
- content::ResourceContext* resource_context)
+ AudioManager* audio_manager)
: render_process_id_(render_process_id),
may_have_pending_requests_(false),
context_getter_(context_getter),
speech_input_preferences_(speech_input_preferences),
- resource_context_(resource_context) {
+ audio_manager_(audio_manager) {
// This is initialized by Browser. Do not add any non-trivial
// initialization here, instead do it lazily when required (e.g. see the
// method |manager()|) or add an Init() method.
@@ -175,8 +174,7 @@
params.language, params.grammar,
params.origin_url,
context_getter_.get(),
- speech_input_preferences_.get(),
- resource_context_->GetAudioManager());
+ speech_input_preferences_.get());
}
void SpeechInputDispatcherHost::OnCancelRecognition(int render_view_id,
« no previous file with comments | « content/browser/speech/speech_input_dispatcher_host.h ('k') | content/browser/speech/speech_input_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698