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

Unified Diff: net/proxy/proxy_config_service_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: net/proxy/proxy_config_service_android.cc
diff --git a/net/proxy/proxy_config_service_android.cc b/net/proxy/proxy_config_service_android.cc
index 44f41fec87c48e414eee0f3afb86789439f8eb9a..2504991113651269bdacfbcd7fb170b40f01da64 100644
--- a/net/proxy/proxy_config_service_android.cc
+++ b/net/proxy/proxy_config_service_android.cc
@@ -158,7 +158,7 @@ std::string GetJavaProperty(const std::string& property) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jstring> str = ConvertUTF8ToJavaString(env, property);
ScopedJavaLocalRef<jstring> result =
- Java_ProxyChangeListener_getProperty(env, str.obj());
+ Java_ProxyChangeListener_getProperty(env, str);
return result.is_null() ?
std::string() : ConvertJavaStringToUTF8(env, result.obj());
}
@@ -213,10 +213,8 @@ class ProxyConfigServiceAndroid::Delegate
env, base::android::GetApplicationContext()));
CHECK(!java_proxy_change_listener_.is_null());
}
- Java_ProxyChangeListener_start(
- env,
- java_proxy_change_listener_.obj(),
- reinterpret_cast<intptr_t>(&jni_delegate_));
+ Java_ProxyChangeListener_start(env, java_proxy_change_listener_,
+ reinterpret_cast<intptr_t>(&jni_delegate_));
}
void FetchInitialConfig() {
@@ -331,7 +329,7 @@ class ProxyConfigServiceAndroid::Delegate
if (java_proxy_change_listener_.is_null())
return;
JNIEnv* env = AttachCurrentThread();
- Java_ProxyChangeListener_stop(env, java_proxy_change_listener_.obj());
+ Java_ProxyChangeListener_stop(env, java_proxy_change_listener_);
}
// Called on the network thread.
« no previous file with comments | « net/android/network_library.cc ('k') | net/test/embedded_test_server/android/embedded_test_server_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698