channel_info.h 1.1 KB

123456789101112131415161718192021222324252627282930
  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.
  4. #ifndef IOS_CHROME_COMMON_CHANNEL_INFO_H_
  5. #define IOS_CHROME_COMMON_CHANNEL_INFO_H_
  6. #include <string>
  7. namespace version_info {
  8. enum class Channel;
  9. }
  10. // Returns a version string to be displayed in "About chromium" dialog.
  11. std::string GetVersionString();
  12. // Returns a human-readable modifier for the version string. For a branded
  13. // build, this modifier is the channel ("canary", "dev" or "beta" but ""
  14. // for stable). In unbranded builds, the modifier is usually an empty string.
  15. // GetChannelString() is intended to be used for display purpose. To simply
  16. // test the channel, use GetChannel().
  17. std::string GetChannelString();
  18. // Returns the channel for the installation. In branded builds, this will be
  19. // version_info::Channel::{STABLE,BETA,DEV,CANARY}. In unbranded builds, or
  20. // in branded builds when the channel cannot be determined, this will be
  21. // version_info::Channel::UNKNOWN.
  22. version_info::Channel GetChannel();
  23. #endif // IOS_CHROME_COMMON_CHANNEL_INFO_H_