Index: chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.cc |
diff --git a/chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.cc b/chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.cc |
index 2d21122c2ab4c80889cfd8d7b054e76852555a0c..13d77f2de15b628bc0ea01c7b793cd3b16559a61 100644 |
--- a/chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.cc |
+++ b/chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.cc |
@@ -122,7 +122,7 @@ void PasswordsExceptionsPageGtk::SetExceptionList( |
COL_SITE, |
UTF16ToUTF8(net::FormatUrl(result[i]->origin, languages)).c_str(), -1); |
} |
- gtk_widget_set_sensitive(remove_all_button_, result.size() > 0); |
+ gtk_widget_set_sensitive(remove_all_button_, !result.empty()); |
} |
void PasswordsExceptionsPageGtk::OnRemoveButtonClicked(GtkWidget* widget) { |
@@ -149,7 +149,7 @@ void PasswordsExceptionsPageGtk::OnRemoveButtonClicked(GtkWidget* widget) { |
delete exception_list_[index]; |
exception_list_.erase(exception_list_.begin() + index); |
- gtk_widget_set_sensitive(remove_all_button_, exception_list_.size() > 0); |
+ gtk_widget_set_sensitive(remove_all_button_, !exception_list_.empty()); |
} |
void PasswordsExceptionsPageGtk::OnRemoveAllButtonClicked(GtkWidget* widget) { |