diff options
author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 17:56:21 +0000 |
---|---|---|
committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 17:56:21 +0000 |
commit | dec62e8475c18559a3246866de7a81887655adb3 (patch) | |
tree | 1346f940ed7e73e7c994891bec0b97288e9c8284 /chrome/installer | |
parent | a052d79b2d27d4484ac3fc126061ffb4ae514313 (diff) | |
download | chromium_src-dec62e8475c18559a3246866de7a81887655adb3.zip chromium_src-dec62e8475c18559a3246866de7a81887655adb3.tar.gz chromium_src-dec62e8475c18559a3246866de7a81887655adb3.tar.bz2 |
* Delete Desktop and Quick Lauch shortcuts in user level install case also.
BUG=4651
Review URL: http://codereview.chromium.org/12417
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/setup/uninstall.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc index 5052019..3e071e4 100644 --- a/chrome/installer/setup/uninstall.cc +++ b/chrome/installer/setup/uninstall.cc @@ -56,15 +56,14 @@ void DeleteChromeShortcut(bool system_uninstall) { std::wstring shortcut_path; if (system_uninstall) { PathService::Get(base::DIR_COMMON_START_MENU, &shortcut_path); - // In case of system level uninstall, we want to remove desktop and - // Quick Launch shortcuts also. In case of user level uninstall, - // chrome.exe deletes these shortcuts. ShellUtil::RemoveChromeDesktopShortcut(ShellUtil::CURRENT_USER | ShellUtil::SYSTEM_LEVEL); ShellUtil::RemoveChromeQuickLaunchShortcut(ShellUtil::CURRENT_USER | ShellUtil::SYSTEM_LEVEL); } else { PathService::Get(base::DIR_START_MENU, &shortcut_path); + ShellUtil::RemoveChromeDesktopShortcut(ShellUtil::CURRENT_USER); + ShellUtil::RemoveChromeQuickLaunchShortcut(ShellUtil::CURRENT_USER); } if (shortcut_path.empty()) { LOG(ERROR) << "Failed to get location for shortcut."; @@ -204,7 +203,7 @@ installer_util::InstallStatus installer_setup::UninstallChrome( // Chrome is not in use so lets uninstall Chrome by deleting various files // and registry entries. Here we will just make best effort and keep going // in case of errors. - // First delete shortcut from Start->Programs. + // First delete shortcuts from Start->Programs, Desktop & Quick Launch. DeleteChromeShortcut(system_uninstall); // Delete the registry keys (Uninstall key and Version key). |