Index: chromeos/network/network_state_handler.cc |
diff --git a/chromeos/network/network_state_handler.cc b/chromeos/network/network_state_handler.cc |
index a1909a4f485fa7273aa77bafae0e973ea2af98d8..ff5ac8fce4c0f0af18a63efaff377318523d1e87 100644 |
--- a/chromeos/network/network_state_handler.cc |
+++ b/chromeos/network/network_state_handler.cc |
@@ -87,8 +87,6 @@ const char NetworkStateHandler::kMatchTypeWireless[] = "wireless"; |
const char NetworkStateHandler::kMatchTypeMobile[] = "mobile"; |
const char NetworkStateHandler::kMatchTypeNonVirtual[] = "non-virtual"; |
-static NetworkStateHandler* g_network_state_handler = NULL; |
- |
NetworkStateHandler::NetworkStateHandler() { |
} |
@@ -102,32 +100,6 @@ void NetworkStateHandler::InitShillPropertyHandler() { |
shill_property_handler_->Init(); |
} |
-// static |
-void NetworkStateHandler::Initialize() { |
- CHECK(!g_network_state_handler); |
- g_network_state_handler = new NetworkStateHandler(); |
- g_network_state_handler->InitShillPropertyHandler(); |
-} |
- |
-// static |
-bool NetworkStateHandler::IsInitialized() { |
- return g_network_state_handler != NULL; |
-} |
- |
-// static |
-void NetworkStateHandler::Shutdown() { |
- CHECK(g_network_state_handler); |
- delete g_network_state_handler; |
- g_network_state_handler = NULL; |
-} |
- |
-// static |
-NetworkStateHandler* NetworkStateHandler::Get() { |
- CHECK(g_network_state_handler) |
- << "NetworkStateHandler::Get() called before Initialize()"; |
- return g_network_state_handler; |
-} |
- |
void NetworkStateHandler::AddObserver(NetworkStateHandlerObserver* observer) { |
observers_.AddObserver(observer); |
} |