diff options
author | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 19:49:40 +0000 |
---|---|---|
committer | jamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-10 19:49:40 +0000 |
commit | b524ba665d49ccec20c99fb921b7f23620dd6f6a (patch) | |
tree | 8f4cc285df245d80e4025a92c703431c3f1468ab /chrome/browser | |
parent | 409dceef35499073b5aa39767b33505fbcffa290 (diff) | |
download | chromium_src-b524ba665d49ccec20c99fb921b7f23620dd6f6a.zip chromium_src-b524ba665d49ccec20c99fb921b7f23620dd6f6a.tar.gz chromium_src-b524ba665d49ccec20c99fb921b7f23620dd6f6a.tar.bz2 |
CrOS - Remove --experimental-eap-methods switch, turn them on
We hid some 802.1X enterprise Wi-Fi methods behind a flag for R12 because they didn't have enough test time. Turn them on by default for R13.
BUG=chromium-os:15084
TEST=Open about:flags. Verify that "Experimental EAP methods" is *not* in the list.
Review URL: http://codereview.chromium.org/6970009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/about_flags.cc | 12 | ||||
-rw-r--r-- | chrome/browser/chromeos/options/wifi_config_view.cc | 63 |
2 files changed, 22 insertions, 53 deletions
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc index dce9ec2..f058f9b 100644 --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc @@ -286,18 +286,6 @@ const Experiment kExperiments[] = { }, #endif { - "enable-experimental-eap", - IDS_FLAGS_ENABLE_EXPERIMENTAL_EAP_NAME, - IDS_FLAGS_ENABLE_EXPERIMENTAL_EAP_DESCRIPTION, - kOsCrOS, -#if defined(OS_CHROMEOS) - // The switch exists only on Chrome OS. - SINGLE_VALUE_TYPE(switches::kEnableExperimentalEap) -#else - SINGLE_VALUE_TYPE("") -#endif - }, - { "enable-vpn", IDS_FLAGS_ENABLE_VPN_NAME, IDS_FLAGS_ENABLE_VPN_DESCRIPTION, diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc index d1f2384..bff972c 100644 --- a/chrome/browser/chromeos/options/wifi_config_view.cc +++ b/chrome/browser/chromeos/options/wifi_config_view.cc @@ -69,14 +69,13 @@ class SecurityComboboxModel : public ui::ComboboxModel { DISALLOW_COPY_AND_ASSIGN(SecurityComboboxModel); }; -// TODO(jamescook): For M12 we only expose PEAP and EAP-TTLS. Later, when -// when we support all methods by default, order this list to be alphabetical. +// Methods in alphabetical order. enum EAPMethodComboboxIndex { EAP_METHOD_INDEX_NONE = 0, - EAP_METHOD_INDEX_PEAP = 1, - EAP_METHOD_INDEX_TTLS = 2, // By default we support up to here. + EAP_METHOD_INDEX_LEAP = 1, + EAP_METHOD_INDEX_PEAP = 2, EAP_METHOD_INDEX_TLS = 3, - EAP_METHOD_INDEX_LEAP = 4, // Flag "--enable-all-eap" allows up to here. + EAP_METHOD_INDEX_TTLS = 4, EAP_METHOD_INDEX_COUNT = 5 }; @@ -85,17 +84,15 @@ class EAPMethodComboboxModel : public ui::ComboboxModel { EAPMethodComboboxModel() {} virtual ~EAPMethodComboboxModel() {} virtual int GetItemCount() { - // TODO(jamescook): For M12 we only expose PEAP and EAP-TTLS by default. - // Remove this switch when all methods are supported. - if (!CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableExperimentalEap)) - return EAP_METHOD_INDEX_TTLS + 1; return EAP_METHOD_INDEX_COUNT; } virtual string16 GetItemAt(int index) { if (index == EAP_METHOD_INDEX_NONE) return l10n_util::GetStringUTF16( IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_EAP_METHOD_NONE); + else if (index == EAP_METHOD_INDEX_LEAP) + return l10n_util::GetStringUTF16( + IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_EAP_METHOD_LEAP); else if (index == EAP_METHOD_INDEX_PEAP) return l10n_util::GetStringUTF16( IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_EAP_METHOD_PEAP); @@ -105,9 +102,6 @@ class EAPMethodComboboxModel : public ui::ComboboxModel { else if (index == EAP_METHOD_INDEX_TTLS) return l10n_util::GetStringUTF16( IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_EAP_METHOD_TTLS); - else if (index == EAP_METHOD_INDEX_LEAP) - return l10n_util::GetStringUTF16( - IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_EAP_METHOD_LEAP); NOTREACHED(); return string16(); } @@ -705,24 +699,19 @@ void WifiConfigView::Init(WifiNetwork* wifi, bool show_8021x) { layout->AddView(server_ca_cert_combobox_); layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing); - // TODO(jamescook): Add back client certificate combobox when we support - // EAP-TLS by default. - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableExperimentalEap)) { - // Client certificate - layout->StartRow(0, column_view_set_id); - client_cert_label_ = new views::Label( - UTF16ToWide(l10n_util::GetStringUTF16( - IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_CERT))); - layout->AddView(client_cert_label_); - client_cert_combobox_ = new views::Combobox( - new ClientCertComboboxModel(wifi_config_model_.get())); - client_cert_label_->SetEnabled(false); - client_cert_combobox_->SetEnabled(false); - client_cert_combobox_->set_listener(this); - layout->AddView(client_cert_combobox_); - layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing); - } + // Client certificate + layout->StartRow(0, column_view_set_id); + client_cert_label_ = new views::Label( + UTF16ToWide(l10n_util::GetStringUTF16( + IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_CERT))); + layout->AddView(client_cert_label_); + client_cert_combobox_ = new views::Combobox( + new ClientCertComboboxModel(wifi_config_model_.get())); + client_cert_label_->SetEnabled(false); + client_cert_combobox_->SetEnabled(false); + client_cert_combobox_->set_listener(this); + layout->AddView(client_cert_combobox_); + layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing); // Identity layout->StartRow(0, column_view_set_id); @@ -805,18 +794,10 @@ void WifiConfigView::Init(WifiNetwork* wifi, bool show_8021x) { eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_TTLS); break; case EAP_METHOD_TLS: - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableExperimentalEap)) - eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_TLS); - else // Clean up from previous run with the switch set. - eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_NONE); + eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_TLS); break; case EAP_METHOD_LEAP: - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableExperimentalEap)) - eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_LEAP); - else // Clean up from previous run with the switch set. - eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_NONE); + eap_method_combobox_->SetSelectedItem(EAP_METHOD_INDEX_LEAP); break; default: break; |