Index: base/android/jni_android.h |
diff --git a/base/android/jni_android.h b/base/android/jni_android.h |
index 9a158950210c2bf5c2c17f146866f3ea58e9ac54..66b3134e35d2b271760c2d9a19952c6affb15b97 100644 |
--- a/base/android/jni_android.h |
+++ b/base/android/jni_android.h |
@@ -37,6 +37,13 @@ jmethodID GetMethodID(JNIEnv* env, |
const char* const method, |
const char* const jni_signature); |
+// Get the method ID for a class static method. Will clear the pending Java |
+// exception and return 0 if the method is not found. |
+jmethodID GetStaticMethodID(JNIEnv* env, |
+ jclass clazz, |
+ const char* const method, |
+ const char* const jni_signature); |
+ |
// Returns true if an exception is pending in the provided JNIEnv*. |
// If an exception is pending, it is printed. |
bool CheckException(JNIEnv* env); |