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

Unified Diff: net/nqe/network_quality_estimator.cc

Issue 2705273002: Throttle Socket watcher RTT notifications from QUIC (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 | « net/net.gypi ('k') | net/nqe/network_quality_estimator_params.h » ('j') | 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 807a5423cd58a966b59dce1a23c7ebee0aa8bda8..6c2fb14b13c5db40fdffdd5c33e771efc045568f 100644
--- a/net/nqe/network_quality_estimator.cc
+++ b/net/nqe/network_quality_estimator.cc
@@ -317,8 +317,10 @@ NetworkQualityEstimator::NetworkQualityEstimator(
watcher_factory_.reset(new nqe::internal::SocketWatcherFactory(
base::ThreadTaskRunnerHandle::Get(),
+ nqe::internal::GetMinSocketWatcherNotificationInterval(variation_params),
base::Bind(&NetworkQualityEstimator::OnUpdatedRTTAvailable,
- base::Unretained(this))));
+ base::Unretained(this)),
+ tick_clock_.get()));
// Record accuracy after a 15 second interval. The values used here must
// remain in sync with the suffixes specified in
« no previous file with comments | « net/net.gypi ('k') | net/nqe/network_quality_estimator_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698