Index: chrome/browser/chromeos/extensions/networking_private_event_router.cc |
diff --git a/chrome/browser/chromeos/extensions/networking_private_event_router.cc b/chrome/browser/chromeos/extensions/networking_private_event_router.cc |
index d6af5d1f81efd6373d1156bb29dbde3e696fdebd..10556f2f854748472f8b67739e7cbefc6ba8f6e7 100644 |
--- a/chrome/browser/chromeos/extensions/networking_private_event_router.cc |
+++ b/chrome/browser/chromeos/extensions/networking_private_event_router.cc |
@@ -57,7 +57,7 @@ void NetworkingPrivateEventRouter::Shutdown() { |
event_router->UnregisterObserver(this); |
if (listening_) |
- NetworkStateHandler::Get()->RemoveObserver(this); |
+ NetworkHandler::Get()->network_state_handler()->RemoveObserver(this); |
listening_ = false; |
} |
@@ -81,10 +81,10 @@ void NetworkingPrivateEventRouter::StartOrStopListeningForNetworkChanges() { |
if (should_listen) { |
if (!listening_) |
- NetworkStateHandler::Get()->AddObserver(this); |
+ NetworkHandler::Get()->network_state_handler()->AddObserver(this); |
} else { |
if (listening_) |
- NetworkStateHandler::Get()->RemoveObserver(this); |
+ NetworkHandler::Get()->network_state_handler()->RemoveObserver(this); |
} |
listening_ = should_listen; |
} |
@@ -92,7 +92,7 @@ void NetworkingPrivateEventRouter::StartOrStopListeningForNetworkChanges() { |
void NetworkingPrivateEventRouter::NetworkListChanged() { |
EventRouter* event_router = ExtensionSystem::Get(profile_)->event_router(); |
NetworkStateList networks; |
- NetworkStateHandler::Get()->GetNetworkList(&networks); |
+ NetworkHandler::Get()->network_state_handler()->GetNetworkList(&networks); |
if (!event_router->HasEventListener(kOnNetworkListChanged)) |
return; |