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

Unified Diff: base/android/java_runtime.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 | « base/android/java_handler_thread.cc ('k') | base/android/jni_generator/sample_for_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java_runtime.cc
diff --git a/base/android/java_runtime.cc b/base/android/java_runtime.cc
index bc67978b0c9e596c89b405477ff7b97ffc0a6d36..5fae49a2adb8d6ae5b57fb5ad5bef2d14e56b516 100644
--- a/base/android/java_runtime.cc
+++ b/base/android/java_runtime.cc
@@ -13,8 +13,8 @@ void JavaRuntime::GetMemoryUsage(long* total_memory, long* free_memory) {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jobject> runtime =
JNI_Runtime::Java_Runtime_getRuntime(env);
- *total_memory = JNI_Runtime::Java_Runtime_totalMemory(env, runtime.obj());
- *free_memory = JNI_Runtime::Java_Runtime_freeMemory(env, runtime.obj());
+ *total_memory = JNI_Runtime::Java_Runtime_totalMemory(env, runtime);
+ *free_memory = JNI_Runtime::Java_Runtime_freeMemory(env, runtime);
}
} // namespace android
« no previous file with comments | « base/android/java_handler_thread.cc ('k') | base/android/jni_generator/sample_for_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698