Commit 9f16719b authored by dmurph's avatar dmurph Committed by Commit bot

[BlobStorage] Adding error code translations for cache storage metadata.

BUG=631262

Review-Url: https://codereview.chromium.org/2346623002
Cr-Commit-Position: refs/heads/master@{#418712}
parent ffe17771
......@@ -261,10 +261,16 @@ void BlobURLRequestJob::NotifyFailure(int error_code) {
case net::ERR_REQUEST_RANGE_NOT_SATISFIABLE:
status_code = net::HTTP_REQUESTED_RANGE_NOT_SATISFIABLE;
break;
case net::ERR_INVALID_ARGUMENT:
status_code = net::HTTP_BAD_REQUEST;
break;
case net::ERR_CACHE_READ_FAILURE:
case net::ERR_CACHE_CHECKSUM_READ_FAILURE:
case net::ERR_UNEXPECTED:
case net::ERR_FAILED:
break;
default:
DCHECK(false);
DCHECK(false) << "Error code not supported: " << error_code;
break;
}
HeadersCompleted(status_code);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment