| Index: content/child/web_url_loader_impl.cc
|
| diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
|
| index 54ad06e9a300ff3e369259ea6758138ab0bdfeb3..65086cf956bda35d3334a79953108ac9f87314f4 100644
|
| --- a/content/child/web_url_loader_impl.cc
|
| +++ b/content/child/web_url_loader_impl.cc
|
| @@ -362,6 +362,9 @@ void WebURLLoaderImpl::Context::Cancel() {
|
| request_id_ = -1;
|
| }
|
|
|
| + if (body_stream_writer_)
|
| + body_stream_writer_->Fail();
|
| +
|
| // Ensure that we do not notify the multipart delegate anymore as it has
|
| // its own pointer to the client.
|
| if (multipart_delegate_)
|
| @@ -728,10 +731,9 @@ void WebURLLoaderImpl::Context::OnCompletedRequest(
|
| multipart_delegate_.reset(NULL);
|
| }
|
|
|
| - if (request_.useStreamOnResponse()) {
|
| - // TODO(yhirano): Notify error.
|
| - body_stream_writer_.reset();
|
| - }
|
| + if (body_stream_writer_ && error_code != net::OK)
|
| + body_stream_writer_->Fail();
|
| + body_stream_writer_.reset();
|
|
|
| if (client_) {
|
| if (error_code != net::OK) {
|
|
|