mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-04 11:16:12 +03:00
17 lines
483 B
C++
17 lines
483 B
C++
|
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
#include "components/version_info/android/channel_getter.h"
|
||
|
|
||
|
#include "jni/VersionConstantsBridge_jni.h"
|
||
|
|
||
|
namespace version_info {
|
||
|
|
||
|
Channel GetChannel() {
|
||
|
JNIEnv* env = base::android::AttachCurrentThread();
|
||
|
return static_cast<Channel>(Java_VersionConstantsBridge_getChannel(env));
|
||
|
}
|
||
|
|
||
|
} // namespace version_info
|