| Index: chrome/browser/shell_integration_linux.cc
|
| diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
|
| index 237e3f2ffb9da81679710b75652069bbbce3d3a7..532b9a117ea65cd1998f310b14d50bff7e5405bc 100644
|
| --- a/chrome/browser/shell_integration_linux.cc
|
| +++ b/chrome/browser/shell_integration_linux.cc
|
| @@ -585,7 +585,16 @@ std::string GetProgramClassName() {
|
|
|
| std::string GetDesktopName(base::Environment* env) {
|
| #if defined(GOOGLE_CHROME_BUILD)
|
| - return "google-chrome.desktop";
|
| + chrome::VersionInfo::Channel product_channel(
|
| + chrome::VersionInfo::GetChannel());
|
| + switch (product_channel) {
|
| + case chrome::VersionInfo::CHANNEL_DEV:
|
| + return "google-chrome-unstable.desktop";
|
| + case chrome::VersionInfo::CHANNEL_BETA:
|
| + return "google-chrome-beta.desktop";
|
| + default:
|
| + return "google-chrome.desktop";
|
| + }
|
| #else // CHROMIUM_BUILD
|
| // Allow $CHROME_DESKTOP to override the built-in value, so that development
|
| // versions can set themselves as the default without interfering with
|
|
|