Index: chromeos/network/network_state_handler.h |
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h |
index a68e33ad1013d4d1cbc955a9461bd7c89e4c493b..a7fcfa12477d155acbe3d4e523684d7dfd0bf7ef 100644 |
--- a/chromeos/network/network_state_handler.h |
+++ b/chromeos/network/network_state_handler.h |
@@ -16,6 +16,7 @@ |
#include "base/observer_list.h" |
#include "chromeos/chromeos_export.h" |
#include "chromeos/network/managed_state.h" |
+#include "chromeos/network/network_handler.h" |
#include "chromeos/network/network_handler_callbacks.h" |
#include "chromeos/network/shill_property_handler.h" |
@@ -67,18 +68,6 @@ class CHROMEOS_EXPORT NetworkStateHandler |
virtual ~NetworkStateHandler(); |
- // Sets the global instance. Must be called before any calls to Get(). |
- static void Initialize(); |
- |
- // Returns true if the global instance has been initialized. |
- static bool IsInitialized(); |
- |
- // Destroys the global instance. |
- static void Shutdown(); |
- |
- // Gets the global instance. Initialize() must be called first. |
- static NetworkStateHandler* Get(); |
- |
// Add/remove observers. |
void AddObserver(NetworkStateHandlerObserver* observer); |
void RemoveObserver(NetworkStateHandlerObserver* observer); |
@@ -173,6 +162,7 @@ class CHROMEOS_EXPORT NetworkStateHandler |
static const char kMatchTypeNonVirtual[]; |
protected: |
+ friend class NetworkHandler; |
NetworkStateHandler(); |
// ShillPropertyHandler::Listener overrides. |
@@ -215,7 +205,7 @@ class CHROMEOS_EXPORT NetworkStateHandler |
virtual void ManagedStateListChanged( |
ManagedState::ManagedType type) OVERRIDE; |
- // Called in Initialize(). Called explicitly by tests after adding |
+ // Called after construction. Called explicitly by tests after adding |
// test observers. |
void InitShillPropertyHandler(); |