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

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

Issue 2237943002: Remove now-unnecessary .obj() in Java method calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@switch-context
Patch Set: Rebase *again* :( Created 4 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
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 136e9d1f60b5eb7d64c141b006a618042f0f019a..5862e2882bf7b8986342e3009d561accf0860a0b 100644
--- a/content/browser/speech/speech_recognizer_impl_android.cc
+++ b/content/browser/speech/speech_recognizer_impl_android.cc
@@ -62,8 +62,8 @@ void SpeechRecognizerImplAndroid::StartRecognitionOnUIThread(
JNIEnv* env = AttachCurrentThread();
j_recognition_.Reset(Java_SpeechRecognition_createSpeechRecognition(env,
GetApplicationContext(), reinterpret_cast<intptr_t>(this)));
- Java_SpeechRecognition_startRecognition(env, j_recognition_.obj(),
- ConvertUTF8ToJavaString(env, language).obj(), continuous,
+ Java_SpeechRecognition_startRecognition(
+ env, j_recognition_, ConvertUTF8ToJavaString(env, language), continuous,
interim_results);
}
@@ -77,7 +77,7 @@ void SpeechRecognizerImplAndroid::AbortRecognition() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
JNIEnv* env = AttachCurrentThread();
if (!j_recognition_.is_null())
- Java_SpeechRecognition_abortRecognition(env, j_recognition_.obj());
+ Java_SpeechRecognition_abortRecognition(env, j_recognition_);
}
void SpeechRecognizerImplAndroid::StopAudioCapture() {
@@ -89,7 +89,7 @@ void SpeechRecognizerImplAndroid::StopAudioCapture() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
JNIEnv* env = AttachCurrentThread();
if (!j_recognition_.is_null())
- Java_SpeechRecognition_stopRecognition(env, j_recognition_.obj());
+ Java_SpeechRecognition_stopRecognition(env, j_recognition_);
}
bool SpeechRecognizerImplAndroid::IsActive() const {
« no previous file with comments | « content/browser/renderer_host/input/synthetic_gesture_target_android.cc ('k') | content/browser/time_zone_monitor_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698