Chromium Code Reviews
DescriptionReport more relevant error code for windows base::ReplaceFile impl
The windows version of base::ReplaceFile performs a MoveFile, followed by
a ReplaceFile if the move fails.
However, if the to_path does not exist, and the MoveFile fails, the
error reported by ReplaceFile will always be a NOT_FOUND, because
ReplaceFile requires the to_path to exist.
This patch just fowards the MoveFile error when the ReplaceFile's error
is NOT_FOUND. It will be more or equally as relevant.
BUG=689655
Review-Url: https://codereview.chromium.org/2681643005
Cr-Commit-Position: refs/heads/master@{#448970}
Committed: https://chromium.googlesource.com/chromium/src/+/b281ba4e35f9d2f1b28c6e92cae971f048025eb6
Patch Set 1 #
Total comments: 4
Messages
Total messages: 16 (9 generated)
|
|||||||||||||||||||