diff options
Diffstat (limited to 'chrome/browser/platform_util_common_linux.cc')
-rw-r--r-- | chrome/browser/platform_util_common_linux.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/browser/platform_util_common_linux.cc b/chrome/browser/platform_util_common_linux.cc index 195dc66..3e3734d 100644 --- a/chrome/browser/platform_util_common_linux.cc +++ b/chrome/browser/platform_util_common_linux.cc @@ -134,6 +134,24 @@ std::string GetVersionStringModifier() { return modifier; } +// Warning: this may be either Linux or ChromeOS. +Channel GetChannel() { +#if defined(GOOGLE_CHROME_BUILD) + std::string channel = GetVersionStringModifier(); + if (channel.empty()) { + return CHANNEL_STABLE; + } else if (channel == "beta") { + return CHANNEL_BETA; + } else if (channel == "dev") { + return CHANNEL_DEV; + } else if (channel == "canary") { + return CHANNEL_CANARY; + } +#endif + + return CHANNEL_UNKNOWN; +} + bool CanSetAsDefaultBrowser() { return true; } |