| Index: chrome/browser/chromeos/network_state_notifier.h
|
| ===================================================================
|
| --- chrome/browser/chromeos/network_state_notifier.h (revision 64888)
|
| +++ chrome/browser/chromeos/network_state_notifier.h (working copy)
|
| @@ -42,10 +42,10 @@
|
| };
|
|
|
| // NetworkStateNotifier sends notification when network state has
|
| -// chagned. Notification is sent in UI thread.
|
| +// chagned. Notificatio is sent in UI thread.
|
| // TODO(oshima): port this to other platform. merge with
|
| // NetworkChangeNotifier if possible.
|
| -class NetworkStateNotifier : public NetworkLibrary::NetworkManagerObserver {
|
| +class NetworkStateNotifier : public NetworkLibrary::Observer {
|
| public:
|
| // Returns the singleton instance of the network state notifier;
|
| static NetworkStateNotifier* Get();
|
| @@ -59,8 +59,8 @@
|
| return Get()->state_ == NetworkStateDetails::CONNECTED;
|
| }
|
|
|
| - // NetworkLibrary::NetworkManagerObserver implementation.
|
| - virtual void OnNetworkManagerChanged(NetworkLibrary* cros);
|
| + // NetworkLibrary::Observer implementation.
|
| + virtual void NetworkChanged(NetworkLibrary* cros);
|
|
|
| private:
|
| friend struct DefaultSingletonTraits<NetworkStateNotifier>;
|
| @@ -69,7 +69,7 @@
|
| static NetworkStateDetails::State RetrieveState();
|
|
|
| NetworkStateNotifier();
|
| - virtual ~NetworkStateNotifier();
|
| + virtual ~NetworkStateNotifier() {}
|
|
|
| // Update the current state and sends notification to observers.
|
| // This should be invoked in UI thread.
|
|
|