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

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

Issue 14287008: Refactoring installer shortcut deletion; adding dedicated shortcut update feature. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util.h
diff --git a/chrome/installer/util/shell_util.h b/chrome/installer/util/shell_util.h
index bfdb9b953ecfeec05bd2c918e40e8096246a7b16..d3ff95beb98dbd7036a18e1caf9d84f0a3e57903 100644
--- a/chrome/installer/util/shell_util.h
+++ b/chrome/installer/util/shell_util.h
@@ -526,6 +526,25 @@ class ShellUtil {
static void RemoveStartScreenShortcuts(BrowserDistribution* dist,
const string16& target_exe);
+ // Traverses through instsalles shortcut(s) in a similar fashion as
gab 2013/04/24 21:41:46 nit: instsalles ?!
huangs 2013/04/25 16:27:46 installed. Done.
+ // RemoveShortcut(). For each matched shortcut to |old_target_exe|,
+ // update the shortcut so that it points to |new_target_exe|.
+ static bool MigrateShortcut(ShellUtil::ShortcutLocation location,
+ BrowserDistribution* dist,
+ const base::FilePath& old_target_exe,
+ const base::FilePath& new_target_exe,
+ ShellChange level,
+ const string16* shortcut_name);
+
+ // Simmilar to RemoveTaskbarShortcuts(), but performs migration.
+ static void MigrateTaskbarShortcuts(const string16& old_target_exe,
+ const string16& new_target_exe);
+
+ // Simmilar to RemoveStartScreenShortcuts(), but performs migration.
+ static void MigrateStartScreenShortcuts(BrowserDistribution* dist,
+ const string16& old_target_exe,
+ const string16& new_target_exe);
+
// Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid
// preceded by a dot.
// This is guaranteed to be unique on the machine and 27 characters long
« no previous file with comments | « no previous file | chrome/installer/util/shell_util.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698