Making ShortcutOpUpdate() in chrome\installer\util\shell_util.cc use SHORTCUT_UPDATE_...
commit3db06e1c7fb177fe5d456d3078664622d916e90b
authorhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 6 Aug 2013 23:28:38 +0000 (6 23:28 +0000)
committerhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 6 Aug 2013 23:28:38 +0000 (6 23:28 +0000)
tree5c7373416927ffe612436c194716006061f71a28
parent064ffe2d0fbf57e8c00f5922217cc8bda04d991a
Making ShortcutOpUpdate() in chrome\installer\util\shell_util.cc use SHORTCUT_UPDATE_EXISTING.

Details:
- Fixing shell_util_unittest.cc: ValidateChromeShortcut() now also allows .target to be overridden.
- Creating file for dummy target "manganese.exe" (otherwise retargeting shortcuts do not work).
- Updating tests:

  ShellUtilShortcutTest.UpdateChromeShortcut
  ShellUtilShortcutTest.UpdateSystemLevelChromeShortcut
  ShellUtilShortcutTest.UpdateMultipleChromeShortcuts

  to use ValidateChromeShortcut(), instead of callling  base::win::ResolveShortcut() directly.

BUG=268978

Review URL: https://chromiumcodereview.appspot.com/22301005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216025 0039d316-1c4b-4281-b951-d872f2087c98
chrome/installer/util/shell_util.cc
chrome/installer/util/shell_util_unittest.cc