summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/options/passwords_page_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/gtk/options/passwords_page_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/options/passwords_page_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/gtk/options/passwords_page_gtk.cc b/chrome/browser/ui/gtk/options/passwords_page_gtk.cc
index 6eb3b0b..e26cea0 100644
--- a/chrome/browser/ui/gtk/options/passwords_page_gtk.cc
+++ b/chrome/browser/ui/gtk/options/passwords_page_gtk.cc
@@ -165,7 +165,7 @@ void PasswordsPageGtk::SetPasswordList(
UTF16ToUTF8(net::FormatUrl(result[i]->origin, languages)).c_str(),
COL_USERNAME, UTF16ToUTF8(result[i]->username_value).c_str(), -1);
}
- gtk_widget_set_sensitive(remove_all_button_, result.size() > 0);
+ gtk_widget_set_sensitive(remove_all_button_, !result.empty());
}
void PasswordsPageGtk::HidePassword() {
@@ -222,7 +222,7 @@ void PasswordsPageGtk::OnRemoveButtonClicked(GtkWidget* widget) {
delete password_list_[index];
password_list_.erase(password_list_.begin() + index);
- gtk_widget_set_sensitive(remove_all_button_, password_list_.size() > 0);
+ gtk_widget_set_sensitive(remove_all_button_, !password_list_.empty());
}
void PasswordsPageGtk::OnRemoveAllButtonClicked(GtkWidget* widget) {