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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.cc

Issue 7736014: [cros] Process proper notification in SIM dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: js focus fix Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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);
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/resources/chromeos/sim_unlock.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698