Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1267)

Unified Diff: storage/browser/blob/blob_url_request_job.cc

Issue 2709213003: [BlobStorage] Better net error reporting for pre-broken blobs (Closed)
Patch Set: switched to avoid double negative Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « storage/browser/blob/blob_reader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_url_request_job.cc
diff --git a/storage/browser/blob/blob_url_request_job.cc b/storage/browser/blob/blob_url_request_job.cc
index 64c17a9869497b5baca6a46c6b49829ac3283aec..8d7aaea7c2dae0f35deb53893f90d7013bda499b 100644
--- a/storage/browser/blob/blob_url_request_job.cc
+++ b/storage/browser/blob/blob_url_request_job.cc
@@ -162,6 +162,10 @@ void BlobURLRequestJob::DidStart() {
NotifyFailure(net::ERR_FILE_NOT_FOUND);
return;
}
+ if (blob_reader_->net_error()) {
+ NotifyFailure(blob_reader_->net_error());
+ return;
+ }
TRACE_EVENT_ASYNC_BEGIN1("Blob", "BlobRequest::CountSize", this, "uuid",
blob_handle_->uuid());
« no previous file with comments | « storage/browser/blob/blob_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698