| 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 716adc96f28500ec3e7b242ef1efaa917c216b88..e9a0be12bf22b75a1c03c51e75a06fcd3b6f9428 100644
|
| --- a/content/child/web_url_loader_impl.cc
|
| +++ b/content/child/web_url_loader_impl.cc
|
| @@ -870,8 +870,8 @@ void WebURLLoaderImpl::Context::OnCompletedRequest(
|
| }
|
|
|
| if (ftp_listing_delegate_) {
|
| - ftp_listing_delegate_->OnCompletedRequest();
|
| - ftp_listing_delegate_.reset(NULL);
|
| + ftp_listing_delegate_->OnCompletedRequest(error_code);
|
| + ftp_listing_delegate_.reset();
|
| }
|
|
|
| if (body_stream_writer_ && error_code != net::OK)
|
| @@ -910,8 +910,8 @@ void WebURLLoaderImpl::Context::CancelBodyStreaming() {
|
|
|
| // Notify renderer clients that the request is canceled.
|
| if (ftp_listing_delegate_) {
|
| - ftp_listing_delegate_->OnCompletedRequest();
|
| - ftp_listing_delegate_.reset(NULL);
|
| + ftp_listing_delegate_->OnCompletedRequest(net::OK);
|
| + ftp_listing_delegate_.reset();
|
| }
|
|
|
| if (body_stream_writer_) {
|
|
|