Index: chrome/installer/setup/install.cc |
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc |
index 5ba26087664540a6a168744ccdebc089b9bd8b24..b79a563f397088beca5b861ae3c46309b679dd79 100644 |
--- a/chrome/installer/setup/install.cc |
+++ b/chrome/installer/setup/install.cc |
@@ -244,30 +244,6 @@ installer::InstallStatus InstallNewVersion( |
return installer::INSTALL_FAILED; |
} |
-// Deletes the old "Uninstall Google Chrome" shortcut in the Start menu and, if |
-// this is a system-level install, also deletes the old Default user Quick |
-// Launch shortcut. Both of these were created prior to Chrome 24; in Chrome 24, |
-// the uninstall shortcut was removed and the Default user Quick Launch shortcut |
-// was replaced by per-user shortcuts created via Active Setup. |
-void CleanupLegacyShortcuts(const installer::InstallerState& installer_state, |
grt (UTC plus 2)
2014/08/04 18:27:08
this is still run on a surprising number of update
gab
2014/08/04 18:57:08
Why do you think this is the case? Google Update d
grt (UTC plus 2)
2014/08/04 19:05:51
If there is a policy for this (I'm not aware of on
gab
2014/08/04 20:22:51
This is what we do in prefs when deprecating prefs
|
- BrowserDistribution* dist, |
- const base::FilePath& chrome_exe) { |
- ShellUtil::ShellChange shortcut_level = installer_state.system_install() ? |
- ShellUtil::SYSTEM_LEVEL : ShellUtil::CURRENT_USER; |
- base::FilePath uninstall_shortcut_path; |
- ShellUtil::GetShortcutPath(ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_DIR, |
- dist, shortcut_level, &uninstall_shortcut_path); |
- uninstall_shortcut_path = uninstall_shortcut_path.Append( |
- dist->GetUninstallLinkName() + installer::kLnkExt); |
- base::DeleteFile(uninstall_shortcut_path, false); |
- |
- if (installer_state.system_install()) { |
- ShellUtil::RemoveShortcuts( |
- ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH, dist, |
- ShellUtil::SYSTEM_LEVEL, chrome_exe); |
- } |
-} |
- |
// Returns the appropriate shortcut operations for App Launcher, |
// based on state of installation and master_preferences. |
installer::InstallShortcutOperation GetAppLauncherShortcutOperation( |
@@ -562,7 +538,6 @@ InstallStatus InstallOrUpdateProduct( |
BrowserDistribution* chrome_dist = chrome_product->distribution(); |
const base::FilePath chrome_exe( |
installer_state.target_path().Append(kChromeExe)); |
- CleanupLegacyShortcuts(installer_state, chrome_dist, chrome_exe); |
// Install per-user shortcuts on user-level installs and all-users |
// shortcuts on system-level installs. Note that Active Setup will take |