Chromium Code Reviews| Index: chrome/installer/util/google_chrome_sxs_distribution.cc |
| diff --git a/chrome/installer/util/google_chrome_sxs_distribution.cc b/chrome/installer/util/google_chrome_sxs_distribution.cc |
| index 5224a8cfef6a47566c57bd631ae2254afc59f6d0..4ece95eced3db8f88c934c190d88c0277bd01c33 100644 |
| --- a/chrome/installer/util/google_chrome_sxs_distribution.cc |
| +++ b/chrome/installer/util/google_chrome_sxs_distribution.cc |
| @@ -29,10 +29,19 @@ string16 GoogleChromeSxSDistribution::GetBaseAppName() { |
| return L"Google Chrome Canary"; |
| } |
| -string16 GoogleChromeSxSDistribution::GetAppShortCutName() { |
| - const string16& shortcut_name = |
| - installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE); |
| - return shortcut_name; |
| +string16 GoogleChromeSxSDistribution::GetShortcutName( |
| + ShortcutEnum shortcut_enum) { |
| + switch (shortcut_enum) { |
| + case SHORTCUT_CHROME: |
| + return GetBaseAppName(); |
|
gab
2013/06/18 19:50:29
Should be
installer::GetLocalizedString(IDS_SXS_S
calamity
2013/06/27 01:27:44
Done.
|
| + case SHORTCUT_ALTERNATE_CHROME: |
| + return L"The Internet"; |
|
gab
2013/06/18 19:50:29
Make this a constant now that it is used in multip
calamity
2013/06/27 01:27:44
Where should I put it?
gab
2013/06/27 11:49:43
Good question. There is already a localized string
calamity
2013/07/05 09:00:29
IDS_OEM_MAIN_SHORTCUT_NAME_BASE is "Internet Brows
|
| + case SHORTCUT_APP_LAUNCHER: |
| + return L"Chrome App Launcher Canary"; |
|
gab
2013/06/18 19:50:29
Add TODO here to localize this as in google_chrome
calamity
2013/06/27 01:27:44
Done.
|
| + default: |
| + NOTREACHED(); |
| + return string16(); |
| + } |
| } |
| string16 GoogleChromeSxSDistribution::GetBaseAppId() { |
| @@ -53,8 +62,17 @@ bool GoogleChromeSxSDistribution::CanSetAsDefault() { |
| return false; |
| } |
| -int GoogleChromeSxSDistribution::GetIconIndex() { |
| - return kSxSIconIndex; |
| +int GoogleChromeSxSDistribution::GetIconIndex(ShortcutEnum shortcut_enum) { |
| + switch (shortcut_enum) { |
| + case SHORTCUT_CHROME: |
| + case SHORTCUT_ALTERNATE_CHROME: |
| + return kSxSIconIndex; |
| + case SHORTCUT_APP_LAUNCHER: |
| + return 5; |
| + default: |
| + NOTREACHED(); |
| + return 0; |
| + } |
| } |
| bool GoogleChromeSxSDistribution::GetChromeChannel(string16* channel) { |