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

Unified Diff: chrome/browser/chromeos/options/network_config_view.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/options/network_config_view.cc
===================================================================
--- chrome/browser/chromeos/options/network_config_view.cc (revision 46522)
+++ chrome/browser/chromeos/options/network_config_view.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -85,9 +85,9 @@
if (flags_ & FLAG_OTHER_NETWORK)
return l10n_util::GetString(IDS_OPTIONS_SETTINGS_OTHER_NETWORKS);
if (flags_ & FLAG_WIFI)
- return ASCIIToWide(wifi_.ssid);
+ return ASCIIToWide(wifi_.name());
if (flags_ & FLAG_CELLULAR)
- return ASCIIToWide(cellular_.name);
+ return ASCIIToWide(cellular_.name());
return l10n_util::GetString(IDS_STATUSBAR_NETWORK_DEVICE_ETHERNET);
}
@@ -135,11 +135,11 @@
if (flags_ & FLAG_SHOW_IPCONFIG) {
if (flags_ & FLAG_WIFI)
- ipconfig_view_ = new IPConfigView(wifi_.device_path);
+ ipconfig_view_ = new IPConfigView(wifi_.device_path());
else if (flags_ & FLAG_CELLULAR)
- ipconfig_view_ = new IPConfigView(cellular_.device_path);
+ ipconfig_view_ = new IPConfigView(cellular_.device_path());
else
- ipconfig_view_ = new IPConfigView(ethernet_.device_path);
+ ipconfig_view_ = new IPConfigView(ethernet_.device_path());
tabs_->AddTab(
l10n_util::GetString(IDS_OPTIONS_SETTINGS_SECTION_TITLE_IP_CONFIG),
ipconfig_view_);
« no previous file with comments | « chrome/browser/chromeos/options/internet_page_view.cc ('k') | chrome/browser/chromeos/options/wifi_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698