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

Unified Diff: content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc

Issue 2542843006: ResourceLoader: Fix a bunch of double-cancellation/double-error notification cases. (Closed)
Patch Set: Fix merge Created 4 years 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 | « no previous file | content/browser/loader/intercepting_resource_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc
diff --git a/content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc b/content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc
index 44b336c165087b7525dc2f4523eeccf7a3b18f32..a375f8c140c634ae79ff0ad72cf1d9c0274c03c3 100644
--- a/content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc
+++ b/content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc
@@ -127,7 +127,7 @@ void CacheStorageBlobToDiskCache::OnContextShuttingDown() {
void CacheStorageBlobToDiskCache::ReadFromBlob() {
int bytes_read = blob_request_->Read(buffer_.get(), buffer_->size());
- if (bytes_read >= 0)
+ if (bytes_read != net::ERR_IO_PENDING)
OnReadCompleted(blob_request_.get(), bytes_read);
}
« no previous file with comments | « no previous file | content/browser/loader/intercepting_resource_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698