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

Unified Diff: chrome_frame/policy_settings.cc

Issue 6602049: Pure pedantry: Replace all ".size() == 0" with ".empty()". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome_frame/policy_settings.cc
diff --git a/chrome_frame/policy_settings.cc b/chrome_frame/policy_settings.cc
index a6741a3b5123f3a2b6fed68f342d8bd45bfd350d..97c08107bf57eb4f56949d9fe5b9f3b49c2efdc9 100644
--- a/chrome_frame/policy_settings.cc
+++ b/chrome_frame/policy_settings.cc
@@ -110,7 +110,7 @@ void PolicySettings::ReadContentTypeSetting(
sub_key += ASCIIToWide(policy::key::kChromeFrameContentTypes);
content_type_list->clear();
- for (int i = 0; i < arraysize(kRootKeys) && content_type_list->size() == 0;
+ for (int i = 0; i < arraysize(kRootKeys) && content_type_list->empty();
++i) {
EnumerateKeyValues(kRootKeys[i], sub_key.c_str(), content_type_list);
}

Powered by Google App Engine
This is Rietveld 408576698