1// Copyright 2013 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
5#include "chrome/common/extensions/features/feature_channel.h"
6
7using chrome::VersionInfo;
8
9namespace {
10
11const VersionInfo::Channel kDefaultChannel = VersionInfo::CHANNEL_STABLE;
12VersionInfo::Channel g_current_channel = kDefaultChannel;
13
14}  // namespace
15
16namespace extensions {
17
18VersionInfo::Channel GetCurrentChannel() {
19  return g_current_channel;
20}
21
22void SetCurrentChannel(VersionInfo::Channel channel) {
23  g_current_channel = channel;
24}
25
26VersionInfo::Channel GetDefaultChannel() {
27  return kDefaultChannel;
28}
29
30}  // namespace extensions
31