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

Unified Diff: chrome/browser/chromeos/network_list.cc

Issue 2010001: Refactor WifiNetwork, CellularNetwork, and EthernetNetwork into classes to ma... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
Index: chrome/browser/chromeos/network_list.cc
===================================================================
--- chrome/browser/chromeos/network_list.cc (revision 46522)
+++ chrome/browser/chromeos/network_list.cc (working copy)
@@ -38,12 +38,12 @@
return i;
case NETWORK_WIFI:
- if (network_id == networks_[i].wifi_network.ssid)
+ if (network_id == networks_[i].wifi_network.name())
return i;
break;
case NETWORK_CELLULAR:
- if (network_id == networks_[i].cellular_network.name)
+ if (network_id == networks_[i].cellular_network.name())
return i;
break;
@@ -101,10 +101,10 @@
for (WifiNetworkVector::const_iterator it = wifi.begin();
it != wifi.end(); ++it, ++index) {
networks_.push_back(NetworkItem(NETWORK_WIFI,
- ASCIIToUTF16(it->ssid),
+ ASCIIToUTF16(it->name()),
*it,
CellularNetwork()));
- if (network_lib->wifi_ssid() == it->ssid) {
+ if (network_lib->wifi_name() == it->name()) {
SetNetworksIndices(index,
network_lib->wifi_connected(),
network_lib->wifi_connecting());
@@ -115,10 +115,10 @@
for (CellularNetworkVector::const_iterator it = cellular.begin();
it != cellular.end(); ++it, ++index) {
networks_.push_back(NetworkItem(NETWORK_CELLULAR,
- ASCIIToUTF16(it->name),
+ ASCIIToUTF16(it->name()),
WifiNetwork(),
*it));
- if (network_lib->cellular_name() == it->name) {
+ if (network_lib->cellular_name() == it->name()) {
SetNetworksIndices(index,
network_lib->cellular_connected(),
network_lib->cellular_connecting());
« no previous file with comments | « chrome/browser/chromeos/login/network_screen_browsertest.cc ('k') | chrome/browser/chromeos/options/internet_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698