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

Unified Diff: net/nqe/network_quality_estimator_params.cc

Issue 2690113004: Throttle Socket watcher RTT notifications from QUIC (Closed)
Patch Set: Rebased, rch comments 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/nqe/network_quality_estimator_params.h ('k') | net/nqe/socket_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator_params.cc
diff --git a/net/nqe/network_quality_estimator_params.cc b/net/nqe/network_quality_estimator_params.cc
index 8a76bdde4eeb3bc34193b168d76d2aba5b146368..63ace6323fd4c2b53bbda41150935605be5af193 100644
--- a/net/nqe/network_quality_estimator_params.cc
+++ b/net/nqe/network_quality_estimator_params.cc
@@ -379,6 +379,13 @@ bool persistent_cache_reading_enabled(
return true;
}
+base::TimeDelta GetMinSocketWatcherNotificationInterval(
+ const std::map<std::string, std::string>& variation_params) {
+ // Use 1000 milliseconds as the default value.
+ return base::TimeDelta::FromMilliseconds(GetValueForVariationParam(
+ variation_params, "min_socket_watcher_notification_interval_msec", 1000));
+}
+
} // namespace internal
} // namespace nqe
« no previous file with comments | « net/nqe/network_quality_estimator_params.h ('k') | net/nqe/socket_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698