summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/chrome_app_host_distribution.cc
diff options
context:
space:
mode:
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 04:22:13 +0000
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-14 04:22:13 +0000
commit16fcc0d188d193f2c2963988cd62427d719c3c6c (patch)
tree98b877d7b991bfc95246ffbc840c0b5d276775c8 /chrome/installer/util/chrome_app_host_distribution.cc
parent98e469afcf1adef4e3f7d81f540e735070f41981 (diff)
downloadchromium_src-16fcc0d188d193f2c2963988cd62427d719c3c6c.zip
chromium_src-16fcc0d188d193f2c2963988cd62427d719c3c6c.tar.gz
chromium_src-16fcc0d188d193f2c2963988cd62427d719c3c6c.tar.bz2
Refactor of BrowserDistribution.
This is a precursor to https://codereview.chromium.org/13864015/. * Added GetStartMenuShortcutSubfolder, which returns the Start Menu subfolder path for a given subfolder. * GetShortcutName and GetIconIndex now return data specific to a type of shortcut (browser, alternate name of browser, or app launcher). * GetDisplayName is now used rather than GetAppShortcutName where a localized name is needed (e.g., in logs and the registry). BUG=233434,238895,161985 Review URL: https://chromiumcodereview.appspot.com/15255004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/chrome_app_host_distribution.cc')
-rw-r--r--chrome/installer/util/chrome_app_host_distribution.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/chrome/installer/util/chrome_app_host_distribution.cc b/chrome/installer/util/chrome_app_host_distribution.cc
index 7c40326..1c4c0e1 100644
--- a/chrome/installer/util/chrome_app_host_distribution.cc
+++ b/chrome/installer/util/chrome_app_host_distribution.cc
@@ -38,16 +38,14 @@ string16 ChromeAppHostDistribution::GetBaseAppName() {
return L"Google Chrome App Launcher";
}
-string16 ChromeAppHostDistribution::GetAppShortCutName() {
- const string16& product_name =
- installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE);
- return product_name;
+string16 ChromeAppHostDistribution::GetDisplayName() {
+ return GetShortcutName(SHORTCUT_APP_LAUNCHER);
}
-string16 ChromeAppHostDistribution::GetAlternateApplicationName() {
- const string16& product_name =
- installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE);
- return product_name;
+string16 ChromeAppHostDistribution::GetShortcutName(
+ ShortcutType shortcut_type) {
+ DCHECK_EQ(shortcut_type, SHORTCUT_APP_LAUNCHER);
+ return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE);
}
string16 ChromeAppHostDistribution::GetBaseAppId() {