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

Unified Diff: android_webview/native/aw_message_port_service_impl.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 | « android_webview/native/aw_http_auth_handler.cc ('k') | android_webview/native/aw_pdf_exporter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_message_port_service_impl.cc
diff --git a/android_webview/native/aw_message_port_service_impl.cc b/android_webview/native/aw_message_port_service_impl.cc
index 3aaa5808b80a706405f3e08ec68589c190b4711b..28365302968a340fcde4459056bd79ec3dd7b869 100644
--- a/android_webview/native/aw_message_port_service_impl.cc
+++ b/android_webview/native/aw_message_port_service_impl.cc
@@ -40,8 +40,7 @@ AwMessagePortServiceImpl::~AwMessagePortServiceImpl() {
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return;
- Java_AwMessagePortService_unregisterNativeAwMessagePortService(env,
- obj.obj());
+ Java_AwMessagePortService_unregisterNativeAwMessagePortService(env, obj);
}
void AwMessagePortServiceImpl::Init(JNIEnv* env, jobject obj) {
@@ -105,11 +104,8 @@ void AwMessagePortServiceImpl::OnConvertedWebToAppMessage(
ScopedJavaLocalRef<jstring> jmsg = ConvertUTF16ToJavaString(env, value);
ScopedJavaLocalRef<jintArray> jports =
ToJavaIntArray(env, sent_message_port_ids);
- Java_AwMessagePortService_onReceivedMessage(env,
- jobj.obj(),
- message_port_id,
- jmsg.obj(),
- jports.obj());
+ Java_AwMessagePortService_onReceivedMessage(env, jobj, message_port_id, jmsg,
+ jports);
}
void AwMessagePortServiceImpl::OnMessagePortMessageFilterClosing(
@@ -218,8 +214,8 @@ void AwMessagePortServiceImpl::OnMessageChannelCreated(
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return;
- Java_AwMessagePortService_onMessageChannelCreated(env, obj.obj(), *port1,
- *port2, ports->obj());
+ Java_AwMessagePortService_onMessageChannelCreated(env, obj, *port1, *port2,
+ ports->obj());
}
// Adds a new port to the message port service.
« no previous file with comments | « android_webview/native/aw_http_auth_handler.cc ('k') | android_webview/native/aw_pdf_exporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698