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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 1284993005: Notify NetworkDelegate when bytes have been received over the network. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 0a6632e08b5fb0da630f0a9287b9460cb314d7bb..24b20da10948ed7c38ca8fbcea9174094a4e6f59 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1547,6 +1547,9 @@ void URLRequestHttpJob::DoneWithRequest(CompletionCause reason) {
network_quality_estimator->NotifyRequestCompleted(*request());
}
+ // Notify about any new network usage.
+ MaybeNotifyNetworkBytes();
+
RecordPerfHistograms(reason);
if (request_)
request_->set_received_response_content_length(prefilter_bytes_read());

Powered by Google App Engine
This is Rietveld 408576698