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

Unified Diff: remoting/host/android/jni_host.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
« no previous file with comments | « remoting/client/jni/jni_touch_event_data.cc ('k') | ui/android/resources/resource_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/android/jni_host.cc
diff --git a/remoting/host/android/jni_host.cc b/remoting/host/android/jni_host.cc
index a2fe272a9be4080a5c51a0949e9d0b3a80860b59..fa4d670c0dea913c6941947a892c5296ac1cf19f 100644
--- a/remoting/host/android/jni_host.cc
+++ b/remoting/host/android/jni_host.cc
@@ -108,7 +108,7 @@ void JniHost::OnStoreAccessCode(const std::string& access_code,
base::TimeDelta access_code_lifetime) {
JNIEnv* env = base::android::AttachCurrentThread();
Java_Host_onAccessCodeReceived(
- env, java_host_.obj(), ConvertUTF8ToJavaString(env, access_code).obj(),
+ env, java_host_, ConvertUTF8ToJavaString(env, access_code),
static_cast<int>(access_code_lifetime.InSeconds()));
}
@@ -123,8 +123,8 @@ void JniHost::OnStateChanged(It2MeHostState state,
}
JNIEnv* env = base::android::AttachCurrentThread();
- Java_Host_onStateChanged(env, java_host_.obj(), state,
- ConvertUTF8ToJavaString(env, error_message).obj());
+ Java_Host_onStateChanged(env, java_host_, state,
+ ConvertUTF8ToJavaString(env, error_message));
}
static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& caller) {
« no previous file with comments | « remoting/client/jni/jni_touch_event_data.cc ('k') | ui/android/resources/resource_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698