Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10457)

Unified Diff: chrome/installer/util/chrome_frame_distribution.cc

Issue 15255004: Refactor of BrowserDistribution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..a353429f077e979629d73bf43a1f970f62f8d45a 100644
--- a/chrome/installer/util/chrome_frame_distribution.cc
+++ b/chrome/installer/util/chrome_frame_distribution.cc
@@ -36,16 +36,21 @@ 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;
+BrowserDistribution::ShortcutInfo ChromeFrameDistribution::GetShortcutInfo(
+ ShortcutEnum shortcut_enum) {
+ ShortcutInfo info;
+ info.icon_file = installer::kChromeExe;
+ switch (shortcut_enum) {
+ case SHORTCUT_CHROME:
+ case SHORTCUT_ALTERNATE_CHROME:
gab 2013/05/24 15:01:35 SHORTCUT_ALTERNATE_CHROME shouldn't be needed by C
calamity 2013/05/31 00:11:18 Done.
+ info.name = installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE);
+ info.icon_index = 0;
+ break;
+ default:
+ NOTREACHED();
+ return ShortcutInfo();
+ }
+ return info;
}
string16 ChromeFrameDistribution::GetInstallSubDir() {
@@ -108,14 +113,6 @@ string16 ChromeFrameDistribution::GetVersionKey() {
return key;
}
-string16 ChromeFrameDistribution::GetIconFilename() {
- return installer::kChromeExe;
-}
-
-int ChromeFrameDistribution::GetIconIndex() {
- return 0;
-}
-
bool ChromeFrameDistribution::CanSetAsDefault() {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698