• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018 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 "base/version_info/android/channel_getter.h"
6 
7 // Must come after all headers that specialize FromJniType() / ToJniType().
8 #include "base/version_info/android/version_constants_bridge_jni/VersionConstantsBridge_jni.h"
9 
10 namespace version_info {
11 namespace android {
12 
GetChannel()13 Channel GetChannel() {
14   JNIEnv* env = jni_zero::AttachCurrentThread();
15   return static_cast<Channel>(Java_VersionConstantsBridge_getChannel(env));
16 }
17 
18 }  // namespace android
19 }  // namespace version_info
20