Index: content/browser/renderer_host/render_view_host_impl.cc |
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
index 19033a8ecdfa24d7156bc34187e4d0aa82ada488..35b031692bac826eca68e283ceb232e0f60d9ca1 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -494,9 +494,10 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() { |
prefs.javascript_enabled = true; |
} |
- prefs.connection_type = net::NetworkChangeNotifier::GetConnectionType(); |
- prefs.is_online = |
- prefs.connection_type != net::NetworkChangeNotifier::CONNECTION_NONE; |
+ net::NetworkChangeNotifier::GetMaxBandwidthAndConnectionType( |
+ &prefs.net_info_max_bandwidth_mbps, &prefs.net_info_connection_type); |
+ prefs.is_online = prefs.net_info_connection_type != |
+ net::NetworkChangeNotifier::CONNECTION_NONE; |
prefs.number_of_cpu_cores = base::SysInfo::NumberOfProcessors(); |