| Index: net/nqe/network_quality_estimator.cc
|
| diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
|
| index 678b476430d9debae57680c459167c6bbb606d85..da47b1aa66a22905708222a164a6d943ba4ba756 100644
|
| --- a/net/nqe/network_quality_estimator.cc
|
| +++ b/net/nqe/network_quality_estimator.cc
|
| @@ -806,8 +806,8 @@
|
| }
|
| }
|
|
|
| -void NetworkQualityEstimator::NotifyRequestCompleted(const URLRequest& request,
|
| - int net_error) {
|
| +void NetworkQualityEstimator::NotifyRequestCompleted(
|
| + const URLRequest& request) {
|
| TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("net"),
|
| "NetworkQualityEstimator::NotifyRequestCompleted");
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| @@ -816,11 +816,11 @@
|
| return;
|
|
|
| throughput_analyzer_->NotifyRequestCompleted(request);
|
| - RecordCorrelationMetric(request, net_error);
|
| -}
|
| -
|
| -void NetworkQualityEstimator::RecordCorrelationMetric(const URLRequest& request,
|
| - int net_error) const {
|
| + RecordCorrelationMetric(request);
|
| +}
|
| +
|
| +void NetworkQualityEstimator::RecordCorrelationMetric(
|
| + const URLRequest& request) const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
|
|
| // The histogram is recorded with probability
|
| @@ -845,7 +845,7 @@
|
| }
|
|
|
| // Record UMA only for successful requests that have completed.
|
| - if (net_error != OK)
|
| + if (!request.status().is_success() || request.status().is_io_pending())
|
| return;
|
| if (request.GetResponseCode() != HTTP_OK)
|
| return;
|
|
|