summaryrefslogtreecommitdiffstats
path: root/ios/chrome/common/channel_info.h
blob: b363f89bd5e08a69982b7c36d409227dd7eb99f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_COMMON_CHANNEL_INFO_H_
#define IOS_CHROME_COMMON_CHANNEL_INFO_H_

#include <string>

namespace version_info {
enum class Channel;
}

// Returns a version string to be displayed in "About chromium" dialog.
std::string GetVersionString();

// Returns a human-readable modifier for the version string. For a branded
// build, this modifier is the channel ("canary", "dev" or "beta" but ""
// for stable). In unbranded builds, the modifier is usually an empty string.
// GetChannelString() is intended to be used for display purpose. To simply
// test the channel, use GetChannel().
std::string GetChannelString();

// Returns the channel for the installation. In branded builds, this will be
// version_info::Channel::{STABLE,BETA,DEV,CANARY}. In unbranded builds, or
// in branded builds when the channel cannot be determined, this will be
// version_info::Channel::UNKNOWN.
version_info::Channel GetChannel();

#endif  // IOS_CHROME_COMMON_CHANNEL_INFO_H_