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

Unified Diff: net/nqe/network_quality_estimator.cc

Issue 2703103002: NQE: Move ECT computation to NotifyHeadersReceived (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator.cc
diff --git a/net/nqe/network_quality_estimator.cc b/net/nqe/network_quality_estimator.cc
index 7adb2ac2a334b2b3365e21e728fb7a42536fb17b..aacd7e9e91b4af2ec9f179282d0fe7c3ea81a2b4 100644
--- a/net/nqe/network_quality_estimator.cc
+++ b/net/nqe/network_quality_estimator.cc
@@ -411,7 +411,7 @@ void NetworkQualityEstimator::NotifyStartTransaction(
base::TimeTicks now = tick_clock_->NowTicks();
last_main_frame_request_ = now;
- ComputeEffectiveConnectionType();
+ MaybeComputeEffectiveConnectionType();
effective_connection_type_at_last_main_frame_ = effective_connection_type_;
estimated_quality_at_last_main_frame_ = network_quality_;
@@ -443,6 +443,7 @@ void NetworkQualityEstimator::NotifyHeadersReceived(const URLRequest& request) {
}
if (request.load_flags() & LOAD_MAIN_FRAME_DEPRECATED) {
+ ComputeEffectiveConnectionType();
RecordMetricsOnMainFrameRequest();
MaybeQueryExternalEstimateProvider();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698