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

Unified Diff: chrome/browser/chromeos/options/wifi_config_view.cc

Issue 7107005: Replace WPA and RSN with PSK in Other Wi-Fi network UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused strings. Created 9 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/wifi_config_view.cc
diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc
index ed273faf768243c886e5fe948643b8602d80c43a..2e8ed5b00a0e16d362eef0bad20c57e4fe5efbf4 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.cc
+++ b/chrome/browser/chromeos/options/wifi_config_view.cc
@@ -35,9 +35,8 @@ bool Is8021x(const WifiNetwork* wifi) {
enum SecurityComboboxIndex {
SECURITY_INDEX_NONE = 0,
SECURITY_INDEX_WEP = 1,
- SECURITY_INDEX_WPA = 2,
- SECURITY_INDEX_RSN = 3,
- SECURITY_INDEX_COUNT = 4
+ SECURITY_INDEX_PSK = 2,
+ SECURITY_INDEX_COUNT = 3
};
class SecurityComboboxModel : public ui::ComboboxModel {
@@ -54,12 +53,9 @@ class SecurityComboboxModel : public ui::ComboboxModel {
else if (index == SECURITY_INDEX_WEP)
return l10n_util::GetStringUTF16(
IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SECURITY_WEP);
- else if (index == SECURITY_INDEX_WPA)
+ else if (index == SECURITY_INDEX_PSK)
return l10n_util::GetStringUTF16(
- IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SECURITY_WPA);
- else if (index == SECURITY_INDEX_RSN)
- return l10n_util::GetStringUTF16(
- IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SECURITY_RSN);
+ IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_SECURITY_PSK);
NOTREACHED();
return string16();
}
@@ -441,11 +437,8 @@ bool WifiConfigView::Login() {
case SECURITY_INDEX_WEP:
sec = SECURITY_WEP;
break;
- case SECURITY_INDEX_WPA:
- sec = SECURITY_WPA;
- break;
- case SECURITY_INDEX_RSN:
- sec = SECURITY_RSN;
+ case SECURITY_INDEX_PSK:
+ sec = SECURITY_PSK;
break;
}
cros->ConnectToWifiNetwork(GetSsid(), sec, GetPassphrase());
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698