Enable NetInfo rtt, downlink, effectiveType APIs

Desktop / Chromium - Tarun Bansal [chromium.org] - 14 July 2017 00:18 EDT

Enable NetInfo rtt, downlink, effectiveType APIs on all platforms.

Currently, NetInfo API is enabled only on Android and ChromeOS platforms. To enable the rtt, downlink, effectiveType attributes on all platforms, this CL also enables NetInfo API on all platforms and then selectively disables other existing attributes (type, downlinkMax, typeChange) on non-Android, non-ChromeOS platforms.

Bug: 723068 Change-Id: Ife4388240d6434aebf3f31d7a402d310bd4f587c TBR: pfeldman@chromium.org Reviewed-on: https://chromium-review.googlesource.com/565342 Commit-Queue: Tarun Bansal

1f332eb Enable NetInfo rtt, downlink, effectiveType APIs.
chrome/browser/devtools/devtools_sanity_browsertest.cc | 2 +-
chromecast/browser/cast_browser_main_parts.cc | 2 +-
content/browser/net_info_browsertest.cc | 2 +-
content/browser/renderer_host/render_process_host_impl.cc | 2 +-
content/child/runtime_features.cc | 9 +++++----
content/public/common/content_switches.cc | 7 +++++--
content/public/common/content_switches.h | 2 +-
.../global-interface-listing-service-worker-expected.txt | 9 +++++++++
.../global-interface-listing-dedicated-worker-expected.txt | 9 +++++++++
.../stable/webexposed/global-interface-listing-expected.txt | 9 +++++++++
.../global-interface-listing-shared-worker-expected.txt | 9 +++++++++
.../stable/webexposed/global-interface-listing-expected.txt | 9 +++++++++
.../global-interface-listing-service-worker-expected.txt | 9 +++++++++
.../global-interface-listing-dedicated-worker-expected.txt | 9 +++++++++
.../global-interface-listing-shared-worker-expected.txt | 9 +++++++++
.../Source/modules/netinfo/NavigatorNetworkInformation.idl | 4 +---
.../WebKit/Source/modules/netinfo/NetworkInformation.cpp | 7 +++++++
.../WebKit/Source/modules/netinfo/NetworkInformation.idl | 11 +++++------
.../modules/netinfo/WorkerNavigatorNetworkInformation.idl | 1 -
.../WebKit/Source/platform/RuntimeEnabledFeatures.json5 | 8 ++------
.../WebKit/Source/platform/exported/WebRuntimeFeatures.cpp | 4 ++--
third_party/WebKit/public/platform/WebRuntimeFeatures.h | 2 +-
22 files changed, 105 insertions(+), 30 deletions(-)

Upstream: git.chromium.org


  • Share