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

Unified Diff: content/browser/loader/stream_resource_handler.cc

Issue 2368913002: Fix stream errors that occur after a stream starts not propagating. (Closed)
Patch Set: review comments Created 4 years, 3 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 | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/stream_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/stream_resource_handler.cc
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc
index 1718db567f6b17c3a89741fef442ff925b4292f4..3560f98d17b9c84c252ac0f3f7b33c0de79abefb 100644
--- a/content/browser/loader/stream_resource_handler.cc
+++ b/content/browser/loader/stream_resource_handler.cc
@@ -5,6 +5,7 @@
#include "content/browser/loader/stream_resource_handler.h"
#include "base/logging.h"
+#include "net/url_request/url_request_status.h"
namespace content {
@@ -54,7 +55,7 @@ bool StreamResourceHandler::OnReadCompleted(int bytes_read, bool* defer) {
void StreamResourceHandler::OnResponseCompleted(
const net::URLRequestStatus& status,
bool* defer) {
- writer_.Finalize();
+ writer_.Finalize(status.error());
}
void StreamResourceHandler::OnDataDownloaded(int bytes_downloaded) {
« no previous file with comments | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698