blob: bfacf816c3a577473495412d02963b324e1ff2ea [file] [log] [blame]
// Copyright 2018 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 "chrome/browser/android/vr/register_jni.h"
#include "base/android/jni_utils.h"
#include "chrome/browser/android/vr/jni_registration.h"
#include "chrome/browser/android/vr/register_gvr_jni.h"
namespace vr {
bool RegisterJni(JNIEnv* env) {
if (!base::android::IsSelectiveJniRegistrationEnabled(env) &&
!vr::RegisterNonMainDexNatives(env)) {
return false;
}
if (!vr::RegisterMainDexNatives(env)) {
return false;
}
if (!vr::RegisterGvrJni(env)) {
return false;
}
return true;
}
} // namespace vr