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

Unified Diff: net/test/url_request/url_request_failed_job.cc

Issue 2515383004: Revert of Send encoded_body_length to renderer when response completed (1/3) (Closed)
Patch Set: Created 4 years, 1 month 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 | « net/test/url_request/url_request_failed_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_failed_job.cc
diff --git a/net/test/url_request/url_request_failed_job.cc b/net/test/url_request/url_request_failed_job.cc
index 1de2910eb3fb32b549835ca120ae8e09f9e32247..3e1e5664934baeb20ee2d2f432a0d46902ff6284 100644
--- a/net/test/url_request/url_request_failed_job.cc
+++ b/net/test/url_request/url_request_failed_job.cc
@@ -84,7 +84,6 @@
: URLRequestJob(request, network_delegate),
phase_(phase),
net_error_(net_error),
- total_received_bytes_(0),
weak_factory_(this) {
CHECK_GE(phase, URLRequestFailedJob::FailurePhase::START);
CHECK_LE(phase, URLRequestFailedJob::FailurePhase::READ_ASYNC);
@@ -130,10 +129,6 @@
if (net_error_ == ERR_QUIC_PROTOCOL_ERROR) {
details->quic_connection_error = QUIC_INTERNAL_ERROR;
}
-}
-
-int64_t URLRequestFailedJob::GetTotalReceivedBytes() const {
- return total_received_bytes_;
}
// static
@@ -195,9 +190,7 @@
}
return;
}
- const std::string headers = "HTTP/1.1 200 OK";
- response_info_.headers = new net::HttpResponseHeaders(headers);
- total_received_bytes_ = headers.size();
+ response_info_.headers = new net::HttpResponseHeaders("HTTP/1.1 200 OK");
NotifyHeadersComplete();
}
« no previous file with comments | « net/test/url_request/url_request_failed_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698