blob: b363f89bd5e08a69982b7c36d409227dd7eb99f9 [file] [log] [blame]
// 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.
#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();