forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Windows] Handle some more error codes in File::OSErrorToFileError.
- Map the bespoke ReplaceFile errors to FILE_ERROR_IN_USE, since they generally mean that some other entity is preventing operations on one or both of the files in play. - Map LOCK_VIOLATION to FILE_ERROR_ACCESS_DENIED, since that's kinda what it means (the holder of the lock is denying you access, right?). - Map GEN_FAILURE and DISK_OPERATION_FAILED to FILE_ERROR_IO, since they mean that something bad happened while talking to the device. Also, add a few popular values to the WinGetLastError histogram enum. Bug: 1175817 Change-Id: Ie7df2c3ee4cdbbbc6e013fec6a4081cfdc41b32e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3147390 Auto-Submit: Greg Thompson <[email protected]> Reviewed-by: Wez <[email protected]> Commit-Queue: Greg Thompson <[email protected]> Cr-Commit-Position: refs/heads/main@{#919435}
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters