summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/chrome_app_host_operations.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_operations.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_operations.cc')
-rw-r--r--chrome/installer/util/chrome_app_host_operations.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/installer/util/chrome_app_host_operations.cc b/chrome/installer/util/chrome_app_host_operations.cc
index 361f952..cfd9570 100644
--- a/chrome/installer/util/chrome_app_host_operations.cc
+++ b/chrome/installer/util/chrome_app_host_operations.cc
@@ -108,7 +108,8 @@ void ChromeAppHostOperations::AddDefaultShortcutProperties(
}
if (!properties->has_icon())
- properties->set_icon(target_exe, dist->GetIconIndex());
+ properties->set_icon(target_exe,
+ dist->GetIconIndex(BrowserDistribution::SHORTCUT_APP_LAUNCHER));
if (!properties->has_app_id()) {
std::vector<string16> components;