1 // Copyright (c) 2011 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.
5 #include "chrome/common/chrome_version_info.h"
9 static VersionInfo::Channel chromeos_channel
= VersionInfo::CHANNEL_UNKNOWN
;
12 std::string
VersionInfo::GetVersionStringModifier() {
13 #if defined(GOOGLE_CHROME_BUILD)
14 switch (chromeos_channel
) {
31 VersionInfo::Channel
VersionInfo::GetChannel() {
32 return chromeos_channel
;
36 void VersionInfo::SetChannel(const std::string
& channel
) {
37 #if defined(GOOGLE_CHROME_BUILD)
38 if (channel
== "stable-channel") {
39 chromeos_channel
= CHANNEL_STABLE
;
40 } else if (channel
== "beta-channel") {
41 chromeos_channel
= CHANNEL_BETA
;
42 } else if (channel
== "dev-channel") {
43 chromeos_channel
= CHANNEL_DEV
;
44 } else if (channel
== "canary-channel") {
45 chromeos_channel
= CHANNEL_CANARY
;