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

Unified Diff: base/android/jni_android.cc

Issue 7828084: Refactor ScopedJavaRef (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: operator= docs Created 9 years, 3 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: base/android/jni_android.cc
diff --git a/base/android/jni_android.cc b/base/android/jni_android.cc
index 9c655acd7e863a6304deb30186dc1c7cc59a443f..1dc02afb3b0543fce35b14fcf1fb4401109a4db9 100644
--- a/base/android/jni_android.cc
+++ b/base/android/jni_android.cc
@@ -56,6 +56,16 @@ jmethodID GetMethodID(JNIEnv* env,
return id;
}
+jmethodID GetStaticMethodID(JNIEnv* env,
+ jclass clazz,
+ const char* const method,
+ const char* const jni_signature) {
+ jmethodID id = env->GetStaticMethodID(clazz, method, jni_signature);
+ DCHECK(id) << method;
+ CheckException(env);
+ return id;
+}
+
bool CheckException(JNIEnv* env) {
if (env->ExceptionCheck() == JNI_FALSE)
return false;
« no previous file with comments | « base/android/jni_android.h ('k') | base/android/jni_array.h » ('j') | base/android/jni_array.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698