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

Unified Diff: content/browser/net/network_quality_observer_impl.cc

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: kinuko 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
« no previous file with comments | « no previous file | content/browser/net_info_browsertest.cc » ('j') | content/common/renderer.mojom » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/net/network_quality_observer_impl.cc
diff --git a/content/browser/net/network_quality_observer_impl.cc b/content/browser/net/network_quality_observer_impl.cc
index a92ea1a9a5a20d899cb7847286ee663067dc2885..27a64013d32066a6ecc9165c6bc28a338ce7f3c7 100644
--- a/content/browser/net/network_quality_observer_impl.cc
+++ b/content/browser/net/network_quality_observer_impl.cc
@@ -81,8 +81,8 @@ class NetworkQualityObserverImpl::UiThreadObserver
for (RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator());
!it.IsAtEnd(); it.Advance()) {
it.GetCurrentValue()->GetRendererInterface()->OnNetworkQualityChanged(
- last_notified_network_quality_.http_rtt().InMilliseconds(),
- last_notified_network_quality_.transport_rtt().InMilliseconds(),
+ last_notified_network_quality_.http_rtt(),
+ last_notified_network_quality_.transport_rtt(),
last_notified_network_quality_.downstream_throughput_kbps());
}
}
@@ -99,8 +99,8 @@ class NetworkQualityObserverImpl::UiThreadObserver
// Notify the newly created renderer of the current network quality.
rph->GetRendererInterface()->OnNetworkQualityChanged(
- last_notified_network_quality_.http_rtt().InMilliseconds(),
- last_notified_network_quality_.transport_rtt().InMilliseconds(),
+ last_notified_network_quality_.http_rtt(),
+ last_notified_network_quality_.transport_rtt(),
last_notified_network_quality_.downstream_throughput_kbps());
}
« no previous file with comments | « no previous file | content/browser/net_info_browsertest.cc » ('j') | content/common/renderer.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698