OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/cros/network_library.h" | 5 #include "chrome/browser/chromeos/cros/network_library.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2837 DCHECK(device); | 2837 DCHECK(device); |
2838 VLOG(2) << "Network device changed: " << device->name(); | 2838 VLOG(2) << "Network device changed: " << device->name(); |
2839 NetworkDeviceObserverMap::const_iterator iter = | 2839 NetworkDeviceObserverMap::const_iterator iter = |
2840 network_device_observers_.find(device->device_path()); | 2840 network_device_observers_.find(device->device_path()); |
2841 if (iter != network_device_observers_.end()) { | 2841 if (iter != network_device_observers_.end()) { |
2842 NetworkDeviceObserverList* device_observer_list = iter->second; | 2842 NetworkDeviceObserverList* device_observer_list = iter->second; |
2843 if (index == PROPERTY_INDEX_FOUND_NETWORKS) { | 2843 if (index == PROPERTY_INDEX_FOUND_NETWORKS) { |
2844 FOR_EACH_OBSERVER(NetworkDeviceObserver, | 2844 FOR_EACH_OBSERVER(NetworkDeviceObserver, |
2845 *device_observer_list, | 2845 *device_observer_list, |
2846 OnNetworkDeviceFoundNetworks(this, device)); | 2846 OnNetworkDeviceFoundNetworks(this, device)); |
| 2847 } else if (index == PROPERTY_INDEX_SIM_LOCK) { |
| 2848 FOR_EACH_OBSERVER(NetworkDeviceObserver, |
| 2849 *device_observer_list, |
| 2850 OnNetworkDeviceSimLockChanged(this, device)); |
2847 } | 2851 } |
2848 FOR_EACH_OBSERVER(NetworkDeviceObserver, | 2852 FOR_EACH_OBSERVER(NetworkDeviceObserver, |
2849 *device_observer_list, | 2853 *device_observer_list, |
2850 OnNetworkDeviceChanged(this, device)); | 2854 OnNetworkDeviceChanged(this, device)); |
2851 } else { | 2855 } else { |
2852 LOG(ERROR) << "Unexpected signal for unobserved device: " | 2856 LOG(ERROR) << "Unexpected signal for unobserved device: " |
2853 << device->name(); | 2857 << device->name(); |
2854 } | 2858 } |
2855 } | 2859 } |
2856 | 2860 |
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4655 return network_library; | 4659 return network_library; |
4656 } | 4660 } |
4657 | 4661 |
4658 ///////////////////////////////////////////////////////////////////////////// | 4662 ///////////////////////////////////////////////////////////////////////////// |
4659 | 4663 |
4660 } // namespace chromeos | 4664 } // namespace chromeos |
4661 | 4665 |
4662 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 4666 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
4663 // won't be deleted until its last InvokeLater is run. | 4667 // won't be deleted until its last InvokeLater is run. |
4664 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); | 4668 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::NetworkLibraryImplBase); |
OLD | NEW |