• Victor Costan's avatar
    AppCache: Return net::Error in AppCacheDiskCache where possible. · 6d5be271
    Victor Costan authored
    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: default avatarMarijn Kruisselbrink <mek@chromium.org>
    Commit-Queue: Victor Costan <pwnall@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#598864}
    6d5be271
appcache_disk_cache.cc 12.9 KB