1 // Copyright 2017 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "third_party/jni_zero/jni_zero.h" 6 7 // This is called by the VM when the shared library is first loaded. JNI_OnLoad(JavaVM * vm,void * reserved)8__attribute__((visibility("default"))) jint JNI_OnLoad(JavaVM* vm, 9 void* reserved) { 10 jni_zero::InitVM(vm); 11 12 return JNI_VERSION_1_4; 13 } 14