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

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

Issue 317933002: Use the provided connection type to determine if online. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename IPC message. Also fix render_view_host_implc race. Created 6 years, 6 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 | « no previous file | content/browser/renderer_host/render_view_host_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 8d97b1c9720f27b0bb7f3757ee823d4f15b8d458..76f2bb350c8bd062d7acc56b0e1060c308dd2e4d 100644
--- a/content/browser/net/browser_online_state_observer.cc
+++ b/content/browser/net/browser_online_state_observer.cc
@@ -19,11 +19,9 @@ BrowserOnlineStateObserver::~BrowserOnlineStateObserver() {
void BrowserOnlineStateObserver::OnConnectionTypeChanged(
net::NetworkChangeNotifier::ConnectionType type) {
- bool is_online = !net::NetworkChangeNotifier::IsOffline();
for (RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator());
!it.IsAtEnd(); it.Advance()) {
- it.GetCurrentValue()->Send(
- new ViewMsg_NetworkStateChanged(is_online, type));
+ it.GetCurrentValue()->Send(new ViewMsg_NetworkTypeChanged(type));
}
}
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698