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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2823173003: Improve error handling in FtpDirectoryListingResponseDelegate. (Closed)
Patch Set: Created 3 years, 8 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/child/ftp_directory_listing_response_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_) {
« no previous file with comments | « content/child/ftp_directory_listing_response_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698