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; |