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

Unified Diff: chrome/installer/util/shell_util.h

Issue 11743022: Windows: Remove desktop profile shortcuts (and any others pointing to the exe) on uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 12 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
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util.h
===================================================================
--- chrome/installer/util/shell_util.h (revision 174984)
+++ chrome/installer/util/shell_util.h (working copy)
@@ -495,21 +495,21 @@
const string16& protocol,
bool elevate_if_not_admin);
- // Removes installed shortcut at |location|.
- // |chrome_exe|: The path to the chrome.exe being uninstalled; the shortcut
- // will only be deleted if its target is also |chrome_exe|.
+ // Removes installed shortcut(s) at |location|.
+ // |target_exe|: Shortcut target exe; shortcuts will only be deleted when
+ // their target is |target_exe|.
// |level|: CURRENT_USER to remove the per-user shortcut and SYSTEM_LEVEL to
// remove the all-users shortcut.
// |shortcut_name|: If non-null, remove the shortcut named |shortcut_name| at
- // location; otherwise remove the default shortcut at |location|.
- // If |location| is SHORTCUT_LOCATION_START_MENU the shortcut folder specific
+ // location; otherwise remove all shortcuts to |target_exe| at |location|.
+ // If |location| is SHORTCUT_LOCATION_START_MENU, the shortcut folder specific
// to |dist| is deleted.
- // Also attempts to unpin the removed shortcut from the taskbar.
- // Returns true if the shortcut was successfully deleted (or there is no
- // shortcut at |location| pointing to |chrome_exe|).
+ // Also attempts to unpin the removed shortcut(s) from the taskbar.
+ // Returns true if the shortcut(s) were successfully deleted (or there were
+ // none at |location| pointing to |target_exe|).
static bool RemoveShortcut(ShellUtil::ShortcutLocation location,
BrowserDistribution* dist,
- const string16& target_exe,
+ const FilePath& target_exe,
ShellChange level,
const string16* shortcut_name);
« no previous file with comments | « chrome/installer/util/install_util.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698