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

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

Issue 2828353002: Android: Remove GetApplicationContext part 3 (Closed)
Patch Set: Fix android webview tests Created 3 years, 8 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_impl_android.cc
diff --git a/content/browser/speech/speech_recognizer_impl_android.cc b/content/browser/speech/speech_recognizer_impl_android.cc
index 5862e2882bf7b8986342e3009d561accf0860a0b..143fa81c764febec40e2ba6acc5130e277066747 100644
--- a/content/browser/speech/speech_recognizer_impl_android.cc
+++ b/content/browser/speech/speech_recognizer_impl_android.cc
@@ -6,7 +6,6 @@
#include <stddef.h>
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
@@ -24,7 +23,6 @@
using base::android::AppendJavaStringArrayToStringVector;
using base::android::AttachCurrentThread;
using base::android::ConvertUTF8ToJavaString;
-using base::android::GetApplicationContext;
using base::android::JavaFloatArrayToFloatVector;
using base::android::JavaParamRef;
@@ -60,8 +58,8 @@ void SpeechRecognizerImplAndroid::StartRecognitionOnUIThread(
bool interim_results) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
JNIEnv* env = AttachCurrentThread();
- j_recognition_.Reset(Java_SpeechRecognition_createSpeechRecognition(env,
- GetApplicationContext(), reinterpret_cast<intptr_t>(this)));
+ j_recognition_.Reset(Java_SpeechRecognition_createSpeechRecognition(
+ env, reinterpret_cast<intptr_t>(this)));
Java_SpeechRecognition_startRecognition(
env, j_recognition_, ConvertUTF8ToJavaString(env, language), continuous,
interim_results);

Powered by Google App Engine
This is Rietveld 408576698