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

Unified Diff: content/browser/net/browser_online_state_observer.cc

Issue 2400313002: Convert miscellaneous RenderThreadImpl messages to mojom (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « content/browser/android/content_view_statics.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/android/content_view_statics.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698