commit | 18e85001a6fd00f8600f77a905ea5e135018e3f1 | [log] [tgz] |
---|---|---|
author | Greg Thompson <grt@chromium.org> | Wed Sep 08 20:52:28 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 08 20:52:28 2021 |
tree | 162452e8cbd560a6e2719244bf74eaadbaafb9d4 | |
parent | 64a82a909590937e271dae9aeaf39e7c9c04fdf2 [diff] |
[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 <grt@chromium.org> Reviewed-by: Wez <wez@chromium.org> Commit-Queue: Greg Thompson <grt@chromium.org> Cr-Commit-Position: refs/heads/main@{#919435}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.