| // Copyright 2020 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. |
| |
| #include "base/android/jni_generator/jni_generator_helper.h" |
| #include "base/android/jni_utils.h" |
| #include "chrome/android/modules/cablev2_authenticator/internal/jni_registration.h" |
| |
| extern "C" { |
| // This JNI registration method is found and called by module framework code. |
| JNI_GENERATOR_EXPORT bool JNI_OnLoad_cablev2_authenticator(JNIEnv* env) { |
| if (!base::android::IsSelectiveJniRegistrationEnabled(env) && |
| !cablev2_authenticator::RegisterNonMainDexNatives(env)) { |
| return false; |
| } |
| if (!cablev2_authenticator::RegisterMainDexNatives(env)) { |
| return false; |
| } |
| return true; |
| } |
| |
| } // extern "C" |