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

Unified Diff: base/android/jni_generator/testFromJavaPGenerics.golden

Issue 2204623002: Android: Don't require RegisterNatives if there are none (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_generator/testFromJavaPGenerics.golden
diff --git a/base/android/jni_generator/testFromJavaPGenerics.golden b/base/android/jni_generator/testFromJavaPGenerics.golden
index 09d5b7db15e1e792f704e8088f8b2e2cec8e483c..c7005121efa10e58f0d22c794ce8572f4a498acc 100644
--- a/base/android/jni_generator/testFromJavaPGenerics.golden
+++ b/base/android/jni_generator/testFromJavaPGenerics.golden
@@ -33,7 +33,6 @@ static base::subtle::AtomicWord g_HashSet_dummy = 0;
static void Java_HashSet_dummy(JNIEnv* env, jobject obj) __attribute__
((unused));
static void Java_HashSet_dummy(JNIEnv* env, jobject obj) {
- /* Must call RegisterNativesImpl() */
CHECK_CLAZZ(env, obj,
HashSet_clazz(env));
jmethodID method_id =
@@ -52,6 +51,7 @@ static void Java_HashSet_dummy(JNIEnv* env, jobject obj) {
// Step 3: RegisterNatives.
+static bool RegisterNativesImpl(JNIEnv* env) __attribute__((unused));
static bool RegisterNativesImpl(JNIEnv* env) {
if (base::android::IsManualJniRegistrationDisabled()) return true;

Powered by Google App Engine
This is Rietveld 408576698