This source file includes following definitions.
- GetCurrentChannel
- SetCurrentChannel
- GetDefaultChannel
#include "chrome/common/extensions/features/feature_channel.h"
using chrome::VersionInfo;
namespace {
const VersionInfo::Channel kDefaultChannel = VersionInfo::CHANNEL_STABLE;
VersionInfo::Channel g_current_channel = kDefaultChannel;
}
namespace extensions {
VersionInfo::Channel GetCurrentChannel() {
return g_current_channel;
}
void SetCurrentChannel(VersionInfo::Channel channel) {
g_current_channel = channel;
}
VersionInfo::Channel GetDefaultChannel() {
return kDefaultChannel;
}
}