channel_getter.cc 584 B

123456789101112131415161718
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/version_info/android/channel_getter.h"
  5. #include "components/version_info/android/version_constants_bridge_jni/VersionConstantsBridge_jni.h"
  6. namespace version_info {
  7. namespace android {
  8. Channel GetChannel() {
  9. JNIEnv* env = base::android::AttachCurrentThread();
  10. return static_cast<Channel>(Java_VersionConstantsBridge_getChannel(env));
  11. }
  12. } // namespace android
  13. } // namespace version_info