| Index: content/browser/net/browser_online_state_observer.cc
|
| diff --git a/content/browser/net/browser_online_state_observer.cc b/content/browser/net/browser_online_state_observer.cc
|
| index 57f3d151714cf9d1f66b284c503652f932c6ccb5..6e774576de2a3b48f5eb9ba5191b9931f147d399 100644
|
| --- a/content/browser/net/browser_online_state_observer.cc
|
| +++ b/content/browser/net/browser_online_state_observer.cc
|
| @@ -8,17 +8,19 @@
|
| #include "content/browser/renderer_host/render_process_host_impl.h"
|
|
|
| BrowserOnlineStateObserver::BrowserOnlineStateObserver() {
|
| - net::NetworkChangeNotifier::AddOnlineStateObserver(this);
|
| + net::NetworkChangeNotifier::AddConnectionTypeObserver(this);
|
| }
|
|
|
| BrowserOnlineStateObserver::~BrowserOnlineStateObserver() {
|
| - net::NetworkChangeNotifier::RemoveOnlineStateObserver(this);
|
| + net::NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
|
| }
|
|
|
| -void BrowserOnlineStateObserver::OnOnlineStateChanged(bool online) {
|
| +void BrowserOnlineStateObserver::OnConnectionTypeChanged(
|
| + net::NetworkChangeNotifier::ConnectionType type) {
|
| for (content::RenderProcessHost::iterator it(
|
| content::RenderProcessHost::AllHostsIterator());
|
| !it.IsAtEnd(); it.Advance()) {
|
| - it.GetCurrentValue()->Send(new ViewMsg_NetworkStateChanged(online));
|
| + it.GetCurrentValue()->Send(new ViewMsg_NetworkStateChanged(
|
| + type != net::NetworkChangeNotifier::CONNECTION_NONE));
|
| }
|
| }
|
|
|