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

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

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix android webview build issues. Created 6 years, 9 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/testConstantsFromJavaP.golden
diff --git a/base/android/jni_generator/testConstantsFromJavaP.golden b/base/android/jni_generator/testConstantsFromJavaP.golden
index 2465c52bb23b0f162a14f51bcd4fd3c7fbabf035..8d79ead0c11790a6596f3d774bdb6afda69aacb5 100644
--- a/base/android/jni_generator/testConstantsFromJavaP.golden
+++ b/base/android/jni_generator/testConstantsFromJavaP.golden
@@ -1,4 +1,4 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -23,6 +23,7 @@ jclass g_MotionEvent_clazz = NULL;
} // namespace
namespace JNI_MotionEvent {
+extern "C"{
enum Java_MotionEvent_constant_fields {
INVALID_POINTER_ID = -1,
@@ -2200,9 +2201,9 @@ static void Java_MotionEvent_writeToParcel(JNIEnv* env, jobject obj, jobject p0,
jni_generator::CheckException(env);
}
+};
// Step 3: RegisterNatives.
-
static bool RegisterNativesImpl(JNIEnv* env) {
g_MotionEvent_clazz = reinterpret_cast<jclass>(env->NewGlobalRef(
base::android::GetClass(env, kMotionEventClassPath).obj()));

Powered by Google App Engine
This is Rietveld 408576698