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 9b457f9b75d9fd6e5a6bef6e1b244e6b54281cdf..a2bbdfe804e1742612ed1625f9cffbc4b20eaf6c 100644 |
--- a/content/browser/net/browser_online_state_observer.cc |
+++ b/content/browser/net/browser_online_state_observer.cc |
@@ -26,8 +26,8 @@ void BrowserOnlineStateObserver::OnMaxBandwidthChanged( |
net::NetworkChangeNotifier::ConnectionType type) { |
for (RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator()); |
!it.IsAtEnd(); it.Advance()) { |
- it.GetCurrentValue()->Send( |
- new ViewMsg_NetworkConnectionChanged(type, max_bandwidth_mbps)); |
+ it.GetCurrentValue()->GetRendererInterface()->OnNetworkConnectionChanged( |
+ type, max_bandwidth_mbps); |
} |
} |
@@ -43,8 +43,8 @@ void BrowserOnlineStateObserver::Observe( |
net::NetworkChangeNotifier::ConnectionType connection_type; |
net::NetworkChangeNotifier::GetMaxBandwidthAndConnectionType( |
&max_bandwidth_mbps, &connection_type); |
- rph->Send(new ViewMsg_NetworkConnectionChanged(connection_type, |
- max_bandwidth_mbps)); |
+ rph->GetRendererInterface()->OnNetworkConnectionChanged( |
+ connection_type, max_bandwidth_mbps); |
} |
} // namespace content |