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

Unified Diff: Source/web/WebNetworkStateNotifier.cpp

Issue 1308943005: [NetInfo] Add Blink support for connection.change, connection.downlinkMax, and wimax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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 | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/platform/WebConnectionType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebNetworkStateNotifier.cpp
diff --git a/Source/web/WebNetworkStateNotifier.cpp b/Source/web/WebNetworkStateNotifier.cpp
index c0dca6b934410ed51ee7b084a6c4673558c680d8..b9f8849ef9b289f80856fa71c1a6e31ddffad9cc 100644
--- a/Source/web/WebNetworkStateNotifier.cpp
+++ b/Source/web/WebNetworkStateNotifier.cpp
@@ -42,7 +42,12 @@ void WebNetworkStateNotifier::setOnLine(bool onLine)
void WebNetworkStateNotifier::setWebConnectionType(WebConnectionType type)
{
- networkStateNotifier().setWebConnectionType(type);
+ setWebConnection(type, 0.0);
+}
+
+void WebNetworkStateNotifier::setWebConnection(WebConnectionType type, double maxBandwidthMbps)
+{
+ networkStateNotifier().setWebConnection(type, maxBandwidthMbps);
}
} // namespace blink
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/platform/WebConnectionType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698