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

Unified Diff: chrome/browser/ui/gtk/options/passwords_exceptions_page_gtk.cc

Issue 6609008: Change other usages of .size() to .empty() when applicable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter nits Created 9 years, 10 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
« no previous file with comments | « chrome/browser/ui/gtk/dialogs_gtk.cc ('k') | chrome/browser/ui/gtk/options/passwords_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/ui/gtk/dialogs_gtk.cc ('k') | chrome/browser/ui/gtk/options/passwords_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698