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

Unified Diff: chromeos/network/network_state_handler.cc

Issue 18348016: If requested, report network interfaces to management server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finishing touches. Created 7 years, 5 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 c5d00809a0555a97233c4fb775ff30910fe25089..45f4547e1646f710a216bd53a237eeaa8fb56f41 100644
--- a/chromeos/network/network_state_handler.cc
+++ b/chromeos/network/network_state_handler.cc
@@ -265,7 +265,6 @@ std::string NetworkStateHandler::FormattedHardwareAddressForType(
void NetworkStateHandler::GetNetworkList(NetworkStateList* list) const {
DCHECK(list);
- NetworkStateList result;
list->clear();
for (ManagedStateList::const_iterator iter = network_list_.begin();
iter != network_list_.end(); ++iter) {
@@ -275,6 +274,17 @@ void NetworkStateHandler::GetNetworkList(NetworkStateList* list) const {
}
}
+void NetworkStateHandler::GetDeviceList(DeviceStateList* list) const {
+ DCHECK(list);
+ list->clear();
+ for (ManagedStateList::const_iterator iter = device_list_.begin();
+ iter != device_list_.end(); ++iter) {
+ const DeviceState* device = (*iter)->AsDeviceState();
+ DCHECK(device);
+ list->push_back(device);
+ }
+}
+
void NetworkStateHandler::GetFavoriteList(FavoriteStateList* list) const {
DCHECK(list);
FavoriteStateList result;
« 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