1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
android_webview / browser / metrics / system_state_util.cc [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