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

Unified Diff: chromeos/network/network_state_handler.cc

Issue 22611005: Switch over MobileActivator to use Network*Handler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ws Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/network_state_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_state_handler.cc
diff --git a/chromeos/network/network_state_handler.cc b/chromeos/network/network_state_handler.cc
index 106537f0efa4c72554335ba0877941bae187cfb7..7a350acd7cb23e85b88438e1647def2135f31a47 100644
--- a/chromeos/network/network_state_handler.cc
+++ b/chromeos/network/network_state_handler.cc
@@ -277,6 +277,11 @@ std::string NetworkStateHandler::FormattedHardwareAddressForType(
}
void NetworkStateHandler::GetNetworkList(NetworkStateList* list) const {
+ GetNetworkListByType(kMatchTypeDefault, list);
+}
+
+void NetworkStateHandler::GetNetworkListByType(const std::string& type,
+ NetworkStateList* list) const {
DCHECK(list);
list->clear();
for (ManagedStateList::const_iterator iter = network_list_.begin();
@@ -285,7 +290,8 @@ void NetworkStateHandler::GetNetworkList(NetworkStateList* list) const {
continue;
const NetworkState* network = (*iter)->AsNetworkState();
DCHECK(network);
- list->push_back(network);
+ if (ManagedStateMatchesType(network, type))
+ list->push_back(network);
}
}
« no previous file with comments | « chromeos/network/network_state_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698