blob: e37558207771846d45eaed6380b0e297e66767e3 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/webxr/android/features_jni/WebXrAndroidFeatureMap_jni.h"
#include "device/vr/buildflags/buildflags.h"
#if BUILDFLAG(ENABLE_VR)
#include "device/vr/public/cpp/features.h"
#endif
namespace webxr {
static jboolean JNI_WebXrAndroidFeatureMap_IsOpenXrEnabled(JNIEnv* env) {
#if BUILDFLAG(ENABLE_VR)
return device::features::IsOpenXrEnabled();
#else
return false;
#endif
}
} // namespace webxr