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

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

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, more fixes 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/testNativeExportsOnlyOption.golden
diff --git a/base/android/jni_generator/testNativeExportsOnlyOption.golden b/base/android/jni_generator/testNativeExportsOnlyOption.golden
index 2c89e3bacca85e0c32eb27e894a9027f21d4fa7c..2ca3d700c8630f28e5ff734ead429e5d46b7e78b 100644
--- a/base/android/jni_generator/testNativeExportsOnlyOption.golden
+++ b/base/android/jni_generator/testNativeExportsOnlyOption.golden
@@ -72,7 +72,6 @@ jint
static base::subtle::AtomicWord g_SampleForTests_testMethodWithParam = 0;
static void Java_SampleForTests_testMethodWithParam(JNIEnv* env, jobject obj,
JniIntWrapper iParam) {
- /* Must call RegisterNativesImpl() */
CHECK_CLAZZ(env, obj,
SampleForTests_clazz(env));
jmethodID method_id =
@@ -98,7 +97,6 @@ static base::subtle::AtomicWord g_SampleForTests_testMethodWithParamAndReturn =
static ScopedJavaLocalRef<jstring>
Java_SampleForTests_testMethodWithParamAndReturn(JNIEnv* env, jobject obj,
JniIntWrapper iParam) {
- /* Must call RegisterNativesImpl() */
CHECK_CLAZZ(env, obj,
SampleForTests_clazz(env), NULL);
jmethodID method_id =
@@ -123,7 +121,6 @@ static ScopedJavaLocalRef<jstring>
static base::subtle::AtomicWord g_SampleForTests_testStaticMethodWithParam = 0;
static jint Java_SampleForTests_testStaticMethodWithParam(JNIEnv* env,
JniIntWrapper iParam) {
- /* Must call RegisterNativesImpl() */
CHECK_CLAZZ(env, SampleForTests_clazz(env),
SampleForTests_clazz(env), 0);
jmethodID method_id =
@@ -147,7 +144,6 @@ static jint Java_SampleForTests_testStaticMethodWithParam(JNIEnv* env,
static base::subtle::AtomicWord g_SampleForTests_testMethodWithNoParam = 0;
static jdouble Java_SampleForTests_testMethodWithNoParam(JNIEnv* env) {
- /* Must call RegisterNativesImpl() */
CHECK_CLAZZ(env, SampleForTests_clazz(env),
SampleForTests_clazz(env), 0);
jmethodID method_id =
@@ -172,7 +168,6 @@ static base::subtle::AtomicWord g_SampleForTests_testStaticMethodWithNoParam =
0;
static ScopedJavaLocalRef<jstring>
Java_SampleForTests_testStaticMethodWithNoParam(JNIEnv* env) {
- /* Must call RegisterNativesImpl() */
CHECK_CLAZZ(env, SampleForTests_clazz(env),
SampleForTests_clazz(env), NULL);
jmethodID method_id =
@@ -193,11 +188,4 @@ static_cast<jstring>(env->CallStaticObjectMethod(SampleForTests_clazz(env),
return ScopedJavaLocalRef<jstring>(env, ret);
}
-// Step 3: RegisterNatives.
-
-static bool RegisterNativesImpl(JNIEnv* env) {
-
- return true;
-}
-
#endif // org_chromium_example_jni_generator_SampleForTests_JNI

Powered by Google App Engine
This is Rietveld 408576698