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

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

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: add #ifdef for linux only property Created 7 years, 1 month 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 4c50356adf3f30fa62e3b98ee1c09fe3bb0f5dfd..9a0f6023ec76f30132a9c81701ce06241383be14 100644
--- a/chrome/installer/util/shell_util.h
+++ b/chrome/installer/util/shell_util.h
@@ -42,11 +42,17 @@ class ShellUtil {
// Typical shortcut directories. Resolved in GetShortcutPath().
// Also used in ShortcutLocationIsSupported().
enum ShortcutLocation {
- SHORTCUT_LOCATION_DESKTOP,
+ SHORTCUT_LOCATION_BEGIN = 0,
gab 2013/11/21 05:50:19 I would prefer SHORTCUT_LOCATION_FIRST here.
calamity 2013/11/21 06:52:46 Done.
+ SHORTCUT_LOCATION_DESKTOP = SHORTCUT_LOCATION_BEGIN,
SHORTCUT_LOCATION_QUICK_LAUNCH,
- SHORTCUT_LOCATION_START_MENU,
+ SHORTCUT_LOCATION_START_MENU_ROOT,
+ SHORTCUT_LOCATION_START_MENU_CHROME_DIR,
+ SHORTCUT_LOCATION_START_MENU_CHROME_APPS_DIR,
SHORTCUT_LOCATION_TASKBAR_PINS, // base::win::VERSION_WIN7 +
SHORTCUT_LOCATION_APP_SHORTCUTS, // base::win::VERSION_WIN8 +
+
+ // This always appears last.
gab 2013/11/21 05:50:19 I think this is a fairly common idiom (I don't thi
calamity 2013/11/21 06:52:46 Removed comment. I don't understand what you mean
gab 2013/11/21 19:52:24 Nah, remove the blank line; my bad, I meant "no-tr
calamity 2013/11/24 23:55:15 Done.
+ NUM_SHORTCUT_LOCATION
gab 2013/11/21 05:50:19 NUM_SHORTCUT_LOCATIONS
calamity 2013/11/21 06:52:46 Done.
};
enum ShortcutOperation {
@@ -315,7 +321,9 @@ class ShellUtil {
// |properties| and |operation| affect this method as described on their
// invidividual definitions above.
// |location| may be one of SHORTCUT_LOCATION_DESKTOP,
- // SHORTCUT_LOCATION_QUICK_LAUNCH, or SHORTCUT_LOCATION_START_MENU.
+ // SHORTCUT_LOCATION_QUICK_LAUNCH, SHORTCUT_LOCATION_START_MENU_ROOT,
+ // SHORTCUT_LOCATION_START_MENU_CHROME_DIR, or
+ // SHORTCUT_LOCATION_START_MENU_CHROME_APPS_DIR.
static bool CreateOrUpdateShortcut(
ShellUtil::ShortcutLocation location,
BrowserDistribution* dist,
@@ -510,8 +518,7 @@ class ShellUtil {
// remove all-users shortcuts.
// |target_exe|: Shortcut target exe; shortcuts will only be deleted when
// their target is |target_exe|.
- // If |location| is SHORTCUT_LOCATION_START_MENU, the shortcut folder specific
- // to |dist| is deleted.
+ // If |location| is a Chrome-specific folder, it will be deleted as well.
// Returns true if all shortcuts pointing to |target_exe| are successfully
// deleted, including the case where no such shortcuts are found.
static bool RemoveShortcuts(ShellUtil::ShortcutLocation location,

Powered by Google App Engine
This is Rietveld 408576698