diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 00:03:18 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 00:03:18 +0000 |
commit | f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3 (patch) | |
tree | 840cfc698d0c1287ef8802ca9a564ae7abdd0f13 /chrome_frame | |
parent | 9ad77099038a76c96f6c4d162fb0706426215a5f (diff) | |
download | chromium_src-f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3.zip chromium_src-f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3.tar.gz chromium_src-f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3.tar.bz2 |
Pure pedantry: Replace all ".size() == 0" with ".empty()".
BUG=carnitas
TEST=compiles; existing unit tests.
Review URL: http://codereview.chromium.org/6602049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76467 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/policy_settings.cc | 2 | ||||
-rw-r--r-- | chrome_frame/urlmon_url_request.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome_frame/policy_settings.cc b/chrome_frame/policy_settings.cc index a6741a3..97c0810 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); } diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc index 3ff76c2..81a3d88 100644 --- a/chrome_frame/urlmon_url_request.cc +++ b/chrome_frame/urlmon_url_request.cc @@ -1248,7 +1248,7 @@ void UrlmonUrlRequestManager::AddPrivacyDataForUrl( bool fire_privacy_event = false; - if (privacy_info_.privacy_records.size() == 0) + if (privacy_info_.privacy_records.empty()) flags |= PRIVACY_URLISTOPLEVEL; if (!privacy_info_.privacy_impacted) { |