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 #include "base/version_info/android/version_constants_bridge_jni/VersionConstantsBridge_jni.h" 8 9 namespace version_info { 10 namespace android { 11 GetChannel()12Channel GetChannel() { 13 JNIEnv* env = jni_zero::AttachCurrentThread(); 14 return static_cast<Channel>(Java_VersionConstantsBridge_getChannel(env)); 15 } 16 17 } // namespace android 18 } // namespace version_info 19