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

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

Issue 7711010: Removal of Profile from content part 9 of 9. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing mock Created 9 years, 4 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/resolve_proxy_msg_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognizer.cc
diff --git a/content/browser/speech/speech_recognizer.cc b/content/browser/speech/speech_recognizer.cc
index e6d32ee7c0565806f42e932ab4eceb7917fa5bf8..f6019f6647bee81866e6423e7d732a2dd08b6c0b 100644
--- a/content/browser/speech/speech_recognizer.cc
+++ b/content/browser/speech/speech_recognizer.cc
@@ -5,8 +5,9 @@
#include "content/browser/speech/speech_recognizer.h"
#include "base/time.h"
-#include "chrome/browser/profiles/profile.h"
#include "content/browser/browser_thread.h"
+#include "content/browser/content_browser_client.h"
+#include "content/common/content_client.h"
#include "net/url_request/url_request_context_getter.h"
using media::AudioInputController;
@@ -223,8 +224,11 @@ void SpeechRecognizer::HandleOnData(string* data) {
// This was the first audio packet recorded, so start a request to the
// server to send the data and inform the delegate.
delegate_->DidStartReceivingAudio(caller_id_);
- request_.reset(new SpeechRecognitionRequest(
- Profile::Deprecated::GetDefaultRequestContext(), this));
+ // Deprecated; see http://crbug.com/92366
+ net::URLRequestContextGetter* context_getter =
+ content::GetContentClient()->browser()->
+ GetDefaultRequestContextDeprecatedCrBug64339();
+ request_.reset(new SpeechRecognitionRequest(context_getter, this));
request_->Start(language_, grammar_, censor_results_, hardware_info_,
origin_url_, encoder_->mime_type());
}
« no previous file with comments | « content/browser/resolve_proxy_msg_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698