AppCache: Return net::Error in AppCacheDiskCache where possible.
Many methods in //net use the "int" return type to return either a net::Error or a number (e.g., bytes read). However, quite a few methods also use the "int" return type, even though they only return net::Errors. AppCacheDiskCache, which is built on top of //net/disk_cache, followed the same pattern. This CL replaces int with net::Error where applicable in AppCacheDiskCache. This is intended to help readers distinguish between methods that return an error code and methods that may return a number or an error code. Change-Id: I495d70e1ba2aaf68d6386125c99d2c2f1f14d481 Reviewed-on: https://chromium-review.googlesource.com/c/1274447Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Commit-Queue: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#598864}
Showing
Please register or sign in to comment