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

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

Issue 9965017: views: Rename ComboboxListener::ItemChanged to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo_box -> combobox Created 8 years, 9 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 72cb115b098b0f4537ae1c57fd8bda1a8bedcbf3..64f2010c4ef85c61a226070a61e80903348d8e82 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.cc
+++ b/chrome/browser/chromeos/options/wifi_config_view.cc
@@ -569,11 +569,8 @@ void WifiConfigView::ButtonPressed(views::Button* sender,
}
}
-void WifiConfigView::ItemChanged(views::Combobox* combo_box,
- int prev_index, int new_index) {
- if (new_index == prev_index)
- return;
- if (combo_box == security_combobox_) {
+void WifiConfigView::OnSelectedIndexChanged(views::Combobox* combobox) {
+ if (combobox == security_combobox_) {
bool passphrase_enabled = PassphraseActive();
passphrase_label_->SetEnabled(passphrase_enabled);
passphrase_textfield_->SetEnabled(passphrase_enabled &&
@@ -581,9 +578,9 @@ void WifiConfigView::ItemChanged(views::Combobox* combo_box,
if (!passphrase_enabled)
passphrase_textfield_->SetText(string16());
RefreshShareCheckbox();
- } else if (combo_box == user_cert_combobox_) {
+ } else if (combobox == user_cert_combobox_) {
RefreshShareCheckbox();
- } else if (combo_box == eap_method_combobox_) {
+ } else if (combobox == eap_method_combobox_) {
RefreshEapFields();
}
UpdateDialogButtons();
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698