Index: webkit/glue/weburlloader_impl.cc |
=================================================================== |
--- webkit/glue/weburlloader_impl.cc (revision 113482) |
+++ webkit/glue/weburlloader_impl.cc (working copy) |
@@ -608,7 +608,7 @@ |
} |
void WebURLLoaderImpl::Context::OnCompletedRequest( |
- const net::URLRequestStatus& original_status, |
+ const net::URLRequestStatus& status, |
const std::string& security_info, |
const base::Time& completion_time) { |
if (ftp_listing_delegate_.get()) { |
@@ -619,16 +619,6 @@ |
multipart_delegate_.reset(NULL); |
} |
- net::URLRequestStatus status = original_status; |
- |
- // Rewrite the Content-Length mismatch as a success. |
- // See crbug.com/52847 for justification. |
- if (status.status() != net::URLRequestStatus::SUCCESS && |
- status.error() == net::ERR_CONTENT_LENGTH_MISMATCH) { |
- status.set_status(net::URLRequestStatus::SUCCESS); |
- status.set_error(net::OK); |
- } |
- |
// Prevent any further IPC to the browser now that we're complete, but |
// don't delete it to keep any downloaded temp files alive. |
DCHECK(!completed_bridge_.get()); |