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

Unified Diff: chrome/browser/chromeos/extensions/networking_private_event_router.cc

Issue 14729017: Add NetworkHandler to own network handlers in src/chromeos/network (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos_unittests Created 7 years, 7 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
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;
« no previous file with comments | « chrome/browser/chromeos/extensions/networking_private_api.cc ('k') | chrome/browser/chromeos/imageburner/burn_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698