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 8198f2d145471b40052ef1171e54f17b62d835ed..2fae159517522ce1f3ce0dfca70751dae208b159 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -460,8 +460,9 @@ WebPreferences RenderViewHostImpl::GetWebkitPrefs(const GURL& url) { |
prefs.javascript_enabled = true; |
} |
- prefs.is_online = !net::NetworkChangeNotifier::IsOffline(); |
prefs.connection_type = net::NetworkChangeNotifier::GetConnectionType(); |
+ prefs.is_online = |
+ prefs.connection_type != net::NetworkChangeNotifier::CONNECTION_NONE; |
prefs.gesture_tap_highlight_enabled = !command_line.HasSwitch( |
switches::kDisableGestureTapHighlight); |