blob: d6b0593e63a4b4d0989b8c85daac5ff126aa07c9 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "android_webview/browser/metrics/system_state_util.h"
// Must come after all headers that specialize FromJniType() / ToJniType().
#include "android_webview/browser_jni_headers/SystemStateUtil_jni.h"
namespace android_webview {
MultipleUserProfilesState GetMultipleUserProfilesState() {
static MultipleUserProfilesState multiple_user_profiles_state =
static_cast<MultipleUserProfilesState>(
Java_SystemStateUtil_getMultipleUserProfilesState(
jni_zero::AttachCurrentThread()));
return multiple_user_profiles_state;
}
PrimaryCpuAbiBitness GetPrimaryCpuAbiBitness() {
static PrimaryCpuAbiBitness primary_cpu_abi_bitness =
static_cast<PrimaryCpuAbiBitness>(
Java_SystemStateUtil_getPrimaryCpuAbiBitness(
jni_zero::AttachCurrentThread()));
return primary_cpu_abi_bitness;
}
} // namespace android_webview