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

Unified Diff: content/public/common/web_preferences.cc

Issue 1306423004: [NetInfo] Browser changes to support connection.downlinkMax (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes 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
Index: content/public/common/web_preferences.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index b50bf734d2fce811505eff0e767e7336b8f4d84f..bf560899d4f0f62ff5c0931132b506b13bd31fa8 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -97,7 +97,10 @@ WebPreferences::WebPreferences()
caret_browsing_enabled(false),
hyperlink_auditing_enabled(true),
is_online(true),
- connection_type(net::NetworkChangeNotifier::CONNECTION_NONE),
+ net_info_connection_type(net::NetworkChangeNotifier::CONNECTION_NONE),
+ net_info_max_bandwidth_mbps(
+ net::NetworkChangeNotifier::GetMaxBandwidthForConnectionSubtype(
+ net::NetworkChangeNotifier::SUBTYPE_NONE)),
allow_universal_access_from_file_urls(false),
allow_file_access_from_file_urls(false),
webaudio_enabled(false),

Powered by Google App Engine
This is Rietveld 408576698