Infobar material design refresh: bg color
[chromium-blink-merge.git] / ios / chrome / common / channel_info.h
blobb363f89bd5e08a69982b7c36d409227dd7eb99f9
1 // Copyright 2015 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 #ifndef IOS_CHROME_COMMON_CHANNEL_INFO_H_
6 #define IOS_CHROME_COMMON_CHANNEL_INFO_H_
8 #include <string>
10 namespace version_info {
11 enum class Channel;
14 // Returns a version string to be displayed in "About chromium" dialog.
15 std::string GetVersionString();
17 // Returns a human-readable modifier for the version string. For a branded
18 // build, this modifier is the channel ("canary", "dev" or "beta" but ""
19 // for stable). In unbranded builds, the modifier is usually an empty string.
20 // GetChannelString() is intended to be used for display purpose. To simply
21 // test the channel, use GetChannel().
22 std::string GetChannelString();
24 // Returns the channel for the installation. In branded builds, this will be
25 // version_info::Channel::{STABLE,BETA,DEV,CANARY}. In unbranded builds, or
26 // in branded builds when the channel cannot be determined, this will be
27 // version_info::Channel::UNKNOWN.
28 version_info::Channel GetChannel();
30 #endif // IOS_CHROME_COMMON_CHANNEL_INFO_H_