Commit 10593edc authored by Mandy Chen's avatar Mandy Chen Committed by Commit Bot

[DPWA] Fix shortcut deletion result on Windows

Shortcut deletion result should be false when the shortcut file isn't
deleted. Currently the condition is the opposite, which indicates the
file is deleted.

Bug: 1108109
Change-Id: Id002221b24f50d4b8e3ed931ad71fe9001a0635a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2427425Reviewed-by: default avatarPhillis Tang <phillis@chromium.org>
Reviewed-by: default avatarDaniel Murphy <dmurph@chromium.org>
Commit-Queue: Mandy Chen <mandy.chen@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#811731}
parent 3d177f6d
...@@ -278,7 +278,7 @@ bool GetShortcutLocationsAndDeleteShortcuts( ...@@ -278,7 +278,7 @@ bool GetShortcutLocationsAndDeleteShortcuts(
// Any shortcut could have been pinned, either by chrome or the user, so // Any shortcut could have been pinned, either by chrome or the user, so
// they are all unpinned. // they are all unpinned.
base::win::UnpinShortcutFromTaskbar(*j); base::win::UnpinShortcutFromTaskbar(*j);
if (base::DeleteFile(*j)) if (!base::DeleteFile(*j))
result = false; result = false;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment