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_
10 namespace version_info
{
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_