| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "base/android/jni_utils.h" |
| #include "chrome/android/modules/stack_unwinder/internal/stack_unwinder__jni_registration_generated.h" |
| #include "third_party/jni_zero/jni_zero.h" |
| |
| extern "C" { |
| // This JNI registration method is found and called by module framework |
| // code. |
| JNI_ZERO_BOUNDARY_EXPORT bool JNI_OnLoad_stack_unwinder(JNIEnv* env) { |
| if (!stack_unwinder::RegisterNatives(env)) { |
| return false; |
| } |
| return true; |
| } |
| } // extern "C" |