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

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

Issue 22382007: On user-level Chrome self-destruct, make user-created shortcuts target system-level chrome.exe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 3 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/util/shell_util.h
diff --git a/chrome/installer/util/shell_util.h b/chrome/installer/util/shell_util.h
index 7d42c3c8394a571efdcb4da0e42ad45948f585e3..bb54f1974efb936e2ba75a4088126d21e75fc9b3 100644
--- a/chrome/installer/util/shell_util.h
+++ b/chrome/installer/util/shell_util.h
@@ -525,15 +525,18 @@ class ShellUtil {
ShellChange level,
const base::FilePath& target_exe);
- // Applies the updates in |shortcut_properties| to all shortcuts in |location|
- // that target |target_exe|.
- // Returns true if all shortcuts pointing to |target_exe| are successfully
- // updated, including the case where no such shortcuts are found.
+ // Applies the updates in |shortcut_properties| to all matching shortcuts
+ // in |location|, i.e.:
+ // - the shortcut's original target is |target_exe|,
+ // - if |require_args| is set, the original arguments are non-empty.
+ // Returns true if all updates to matching shortcuts are successful, including
+ // the vacuous case where no matching shortcuts are found.
static bool UpdateShortcuts(
ShellUtil::ShortcutLocation location,
BrowserDistribution* dist,
ShellChange level,
const base::FilePath& target_exe,
+ bool require_args,
const ShellUtil::ShortcutProperties& properties);
// Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid

Powered by Google App Engine
This is Rietveld 408576698