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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate overriden methods in profile_impl.h Created 9 years, 3 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
diff --git a/content/browser/speech/speech_input_dispatcher_host.cc b/content/browser/speech/speech_input_dispatcher_host.cc
index d8ec2d16140121412a4350d9c74074c26b8479ab..54fd4ee6a02ac9026c042e7e583feebcccf66688 100644
--- a/content/browser/speech/speech_input_dispatcher_host.cc
+++ b/content/browser/speech/speech_input_dispatcher_host.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,6 +6,7 @@
#include "base/lazy_instance.h"
#include "content/browser/content_browser_client.h"
+#include "content/browser/speech/speech_input_preferences.h"
#include "content/common/speech_input_messages.h"
namespace speech_input {
@@ -104,9 +105,14 @@ int SpeechInputDispatcherHost::SpeechInputCallers::request_id(int id) {
SpeechInputManager* SpeechInputDispatcherHost::manager_;
-SpeechInputDispatcherHost::SpeechInputDispatcherHost(int render_process_id)
+SpeechInputDispatcherHost::SpeechInputDispatcherHost(
+ int render_process_id,
+ net::URLRequestContextGetter* context_getter,
+ SpeechInputPreferences* speech_input_preferences)
: render_process_id_(render_process_id),
- may_have_pending_requests_(false) {
+ may_have_pending_requests_(false),
+ context_getter_(context_getter),
+ speech_input_preferences_(speech_input_preferences) {
// 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.
@@ -155,7 +161,9 @@ void SpeechInputDispatcherHost::OnStartRecognition(
render_process_id_,
params.render_view_id, params.element_rect,
params.language, params.grammar,
- params.origin_url);
+ params.origin_url,
+ context_getter_.get(),
+ 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