| Index: base/android/jni_generator/testJNIInitNativeNameOption.golden
|
| diff --git a/base/android/jni_generator/testJNIInitNativeNameOption.golden b/base/android/jni_generator/testJNIInitNativeNameOption.golden
|
| index 0d5d3c6137092756fa36a33bbd76109a7ed3a7c3..53b5f17886058dc2665ac9515726cf8ce8ef2f51 100644
|
| --- a/base/android/jni_generator/testJNIInitNativeNameOption.golden
|
| +++ b/base/android/jni_generator/testJNIInitNativeNameOption.golden
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 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.
|
|
|
| @@ -21,6 +21,7 @@ namespace {
|
| const char kTestClassPath[] = "org/chromium/example/jni_generator/Test";
|
| // Leaking this jclass as we cannot use LazyInstance from some threads.
|
| jclass g_Test_clazz = NULL;
|
| +#define Test_clazz(env) g_Test_clazz
|
|
|
| } // namespace
|
|
|
| @@ -49,11 +50,11 @@ static bool RegisterNativesImpl(JNIEnv* env, jclass clazz) {
|
|
|
| const int kMethodsTestSize = arraysize(kMethodsTest);
|
|
|
| - if (env->RegisterNatives(g_Test_clazz,
|
| + if (env->RegisterNatives(Test_clazz(env),
|
| kMethodsTest,
|
| kMethodsTestSize) < 0) {
|
| jni_generator::HandleRegistrationError(
|
| - env, g_Test_clazz, __FILE__);
|
| + env, Test_clazz(env), __FILE__);
|
| return false;
|
| }
|
|
|
|
|