| Index: chrome/installer/util/chrome_frame_distribution.cc
|
| diff --git a/chrome/installer/util/chrome_frame_distribution.cc b/chrome/installer/util/chrome_frame_distribution.cc
|
| index 1db044641319f7756943b395b843346f9ecf37f1..4c4394fe551e5f661db592fb60e260b91c752e8e 100644
|
| --- a/chrome/installer/util/chrome_frame_distribution.cc
|
| +++ b/chrome/installer/util/chrome_frame_distribution.cc
|
| @@ -36,16 +36,15 @@ string16 ChromeFrameDistribution::GetBaseAppName() {
|
| return L"Google Chrome Frame";
|
| }
|
|
|
| -string16 ChromeFrameDistribution::GetAppShortCutName() {
|
| - const string16& product_name =
|
| - installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE);
|
| - return product_name;
|
| -}
|
| -
|
| -string16 ChromeFrameDistribution::GetAlternateApplicationName() {
|
| - const string16& product_name =
|
| - installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE);
|
| - return product_name;
|
| +string16 ChromeFrameDistribution::GetShortcutName(ShortcutEnum shortcut_enum) {
|
| + switch (shortcut_enum) {
|
| + case SHORTCUT_CHROME:
|
| + case SHORTCUT_ALTERNATE_CHROME:
|
| + return installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE);
|
| + default:
|
| + NOTREACHED();
|
| + return string16();
|
| + }
|
| }
|
|
|
| string16 ChromeFrameDistribution::GetInstallSubDir() {
|
| @@ -112,8 +111,14 @@ string16 ChromeFrameDistribution::GetIconFilename() {
|
| return installer::kChromeExe;
|
| }
|
|
|
| -int ChromeFrameDistribution::GetIconIndex() {
|
| - return 0;
|
| +int ChromeFrameDistribution::GetIconIndex(ShortcutEnum shortcut_enum) {
|
| + switch (shortcut_enum) {
|
| + case SHORTCUT_CHROME:
|
| + return 0;
|
| + default:
|
| + NOTREACHED();
|
| + return 0;
|
| + }
|
| }
|
|
|
| bool ChromeFrameDistribution::CanSetAsDefault() {
|
|
|