summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/setup.cc
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-28 01:22:22 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-28 01:22:22 +0000
commit0a5f0a187c73e47417511ea2ed988c5b3876f563 (patch)
tree5a6677909cb754f86af8e4309e5160a6ade4260a /chrome/installer/setup/setup.cc
parent90a3fbb1723ba60bcf557121b7bbe80817a7533f (diff)
downloadchromium_src-0a5f0a187c73e47417511ea2ed988c5b3876f563.zip
chromium_src-0a5f0a187c73e47417511ea2ed988c5b3876f563.tar.gz
chromium_src-0a5f0a187c73e47417511ea2ed988c5b3876f563.tar.bz2
Wire chrome shortcuts tooltip (installation)
- Not complete since we are waiting for translations - For chromium the tooltip says "Browse the internet" BUG=b/1522969 Review URL: http://codereview.chromium.org/28272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/setup.cc')
-rw-r--r--chrome/installer/setup/setup.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/installer/setup/setup.cc b/chrome/installer/setup/setup.cc
index 046edd2..2ef653a 100644
--- a/chrome/installer/setup/setup.cc
+++ b/chrome/installer/setup/setup.cc
@@ -100,6 +100,7 @@ bool CreateOrUpdateChromeShortcuts(const std::wstring& exe_path,
// The location of Start->Programs->Google Chrome folder
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
const std::wstring& product_name = dist->GetApplicationName();
+ const std::wstring& product_desc = dist->GetAppDescription();
file_util::AppendToPath(&shortcut_path, product_name);
// Create/update Chrome link (points to chrome.exe) & Uninstall Chrome link
@@ -121,13 +122,13 @@ bool CreateOrUpdateChromeShortcuts(const std::wstring& exe_path,
file_util::CreateDirectoryW(shortcut_path);
LOG(INFO) << "Creating shortcut to " << chrome_exe << " at " << chrome_link;
- ret = ret && ShellUtil::UpdateChromeShortcut(chrome_exe, chrome_link, true);
+ ret = ret && ShellUtil::UpdateChromeShortcut(chrome_exe, chrome_link,
+ product_desc, true);
} else if (file_util::PathExists(chrome_link)) {
LOG(INFO) << "Updating shortcut at " << chrome_link
<< " to point to " << chrome_exe;
- ret = ret && ShellUtil::UpdateChromeShortcut(chrome_exe,
- chrome_link,
- false); // do not create new
+ ret = ret && ShellUtil::UpdateChromeShortcut(chrome_exe, chrome_link,
+ product_desc, false);
}
// Create/update uninstall link
@@ -165,12 +166,12 @@ bool CreateOrUpdateChromeShortcuts(const std::wstring& exe_path,
bool create = (options & installer_util::CREATE_ALL_SHORTCUTS) != 0;
if (system_install) {
ret = ret && ShellUtil::CreateChromeDesktopShortcut(chrome_exe,
- ShellUtil::SYSTEM_LEVEL, create);
+ product_desc, ShellUtil::SYSTEM_LEVEL, create);
ret = ret && ShellUtil::CreateChromeQuickLaunchShortcut(chrome_exe,
ShellUtil::CURRENT_USER | ShellUtil::SYSTEM_LEVEL, create);
} else {
ret = ret && ShellUtil::CreateChromeDesktopShortcut(chrome_exe,
- ShellUtil::CURRENT_USER, create);
+ product_desc, ShellUtil::CURRENT_USER, create);
ret = ret && ShellUtil::CreateChromeQuickLaunchShortcut(chrome_exe,
ShellUtil::CURRENT_USER, create);
}