Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5266)

Unified Diff: chrome/installer/setup/uninstall.cc

Issue 14287008: Refactoring installer shortcut deletion; adding dedicated shortcut update feature. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding tests for cookie migration code; using SHORTCUT_REPLACE_EXISTING now. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.";
}

Powered by Google App Engine
This is Rietveld 408576698