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

Unified Diff: net/base/network_change_notifier.cc

Issue 7009002: Fix debug crash caused by NetworkChangeNotifierChromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change NotifyObserversOfOnlineStateChange call to static. Created 9 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 | « net/base/network_change_notifier.h ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index 596ce8e16449480d277ff0c37239c924bae627f4..1ac14bfbe19a05603e8240b816b115f1ee5b477e 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -106,8 +106,10 @@ void NetworkChangeNotifier::NotifyObserversOfIPAddressChange() {
}
void NetworkChangeNotifier::NotifyObserversOfOnlineStateChange() {
- online_state_observer_list_->Notify(
- &OnlineStateObserver::OnOnlineStateChanged, !IsOffline());
+ if (g_network_change_notifier) {
+ g_network_change_notifier->online_state_observer_list_->Notify(
+ &OnlineStateObserver::OnOnlineStateChanged, !IsOffline());
+ }
}
} // namespace net
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/base/network_change_notifier_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698