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) { |