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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: jkarlin comments Created 3 years, 7 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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 58feb85237d71ba997c7c981929950156e7ce052..08c7013382ef7b0b6e9b066d870541d0c877c2aa 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -2126,8 +2126,8 @@ void RenderThreadImpl::OnNetworkQualityChanged(
double transport_rtt_msec,
double downlink_throughput_kbps) {
UMA_HISTOGRAM_BOOLEAN("NQE.RenderThreadNotified", true);
- // TODO(tbansal): https://crbug.com/719108. Notify WebNetworkStateNotifier of
- // the change in the network quality.
+ WebNetworkStateNotifier::SetNetworkQuality(http_rtt_msec, transport_rtt_msec,
+ downlink_throughput_kbps);
kinuko 2017/05/17 02:05:45 So we're downcasting double to int here? Why don'
tbansal1 2017/05/17 05:25:26 Done. Thanks!
}
void RenderThreadImpl::SetWebKitSharedTimersSuspended(bool suspend) {

Powered by Google App Engine
This is Rietveld 408576698