Index: chrome/installer/setup/uninstall.cc |
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc |
index f34de8e5925959c8967aba6b11441bb0c42889cb..d3543bcacf0bced82e5d4b253fdf3c9e93d7dc06 100644 |
--- a/chrome/installer/setup/uninstall.cc |
+++ b/chrome/installer/setup/uninstall.cc |
@@ -341,27 +341,27 @@ void DeleteShortcuts(const InstallerState& installer_state, |
VLOG(1) << "Deleting Desktop shortcut."; |
if (!ShellUtil::RemoveShortcut(ShellUtil::SHORTCUT_LOCATION_DESKTOP, dist, |
- target_exe, install_level, NULL)) { |
+ install_level, target_exe)) { |
LOG(WARNING) << "Failed to delete Desktop shortcut."; |
} |
// Also try to delete the alternate desktop shortcut. It is not sufficient |
// to do so upon failure of the above call as ERROR_FILE_NOT_FOUND on |
// delete is considered success. |
- if (!ShellUtil::RemoveShortcut( |
- ShellUtil::SHORTCUT_LOCATION_DESKTOP, dist, target_exe, install_level, |
- &dist->GetAlternateApplicationName())) { |
+ if (!ShellUtil::RemoveShortcutWithName( |
gab
2013/04/29 19:06:36
If all shortcuts pointing to |target_exe| are dele
huangs
2013/04/30 03:04:16
Removed, noting that RemoveShortcut() continues to
|
+ ShellUtil::SHORTCUT_LOCATION_DESKTOP, dist, install_level, target_exe, |
+ dist->GetAlternateApplicationName())) { |
LOG(WARNING) << "Failed to delete alternate Desktop shortcut."; |
} |
VLOG(1) << "Deleting Quick Launch shortcut."; |
if (!ShellUtil::RemoveShortcut(ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH, |
- dist, target_exe, install_level, NULL)) { |
+ dist, install_level, target_exe)) { |
LOG(WARNING) << "Failed to delete Quick Launch shortcut."; |
} |
VLOG(1) << "Deleting Start Menu shortcuts."; |
if (!ShellUtil::RemoveShortcut(ShellUtil::SHORTCUT_LOCATION_START_MENU, dist, |
- target_exe, install_level, NULL)) { |
+ install_level, target_exe)) { |
LOG(WARNING) << "Failed to delete Start Menu shortcuts."; |
} |