remoting_jni_onload.cc 423 B

123456789101112131415
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/android/base_jni_onload.h"
  5. #include "base/android/jni_android.h"
  6. JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
  7. base::android::InitVM(vm);
  8. if (!base::android::OnJNIOnLoadInit()) {
  9. return -1;
  10. }
  11. return JNI_VERSION_1_4;
  12. }