summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 00:03:18 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-02 00:03:18 +0000
commitf6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3 (patch)
tree840cfc698d0c1287ef8802ca9a564ae7abdd0f13 /webkit
parent9ad77099038a76c96f6c4d162fb0706426215a5f (diff)
downloadchromium_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 'webkit')
-rw-r--r--webkit/fileapi/file_system_path_manager.cc2
-rw-r--r--webkit/plugins/npapi/plugin_group.cc2
-rw-r--r--webkit/tools/test_shell/accessibility_ui_element.cc2
-rw-r--r--webkit/tools/test_shell/test_shell_mac.mm2
4 files changed, 4 insertions, 4 deletions
diff --git a/webkit/fileapi/file_system_path_manager.cc b/webkit/fileapi/file_system_path_manager.cc
index 8ef0631..61aa49e 100644
--- a/webkit/fileapi/file_system_path_manager.cc
+++ b/webkit/fileapi/file_system_path_manager.cc
@@ -290,7 +290,7 @@ bool FileSystemPathManager::IsAllowedScheme(const GURL& url) const {
// static
bool FileSystemPathManager::IsRestrictedFileName(const FilePath& filename) {
- if (filename.value().size() == 0)
+ if (filename.value().empty())
return false;
if (IsWhitespace(filename.value()[filename.value().size() - 1]) ||
diff --git a/webkit/plugins/npapi/plugin_group.cc b/webkit/plugins/npapi/plugin_group.cc
index 4b61baa..52f7c41 100644
--- a/webkit/plugins/npapi/plugin_group.cc
+++ b/webkit/plugins/npapi/plugin_group.cc
@@ -488,7 +488,7 @@ bool PluginGroup::RequiresAuthorization() const {
}
bool PluginGroup::IsEmpty() const {
- return web_plugin_infos_.size() == 0;
+ return web_plugin_infos_.empty();
}
void PluginGroup::DisableOutdatedPlugins() {
diff --git a/webkit/tools/test_shell/accessibility_ui_element.cc b/webkit/tools/test_shell/accessibility_ui_element.cc
index e1a9d1c..78988a9 100644
--- a/webkit/tools/test_shell/accessibility_ui_element.cc
+++ b/webkit/tools/test_shell/accessibility_ui_element.cc
@@ -362,7 +362,7 @@ void AccessibilityUIElement::StringForRangeCallback(
void AccessibilityUIElement::ChildAtIndexCallback(
const CppArgumentList& args, CppVariant* result) {
- if (args.size() == 0 || !args[0].isNumber()) {
+ if (args.empty() || !args[0].isNumber()) {
result->SetNull();
return;
}
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm
index d001212..7d32c18 100644
--- a/webkit/tools/test_shell/test_shell_mac.mm
+++ b/webkit/tools/test_shell/test_shell_mac.mm
@@ -188,7 +188,7 @@ void TestShell::PlatformShutdown() {
[*it release];
}
// assert if we have anything left over, that would be bad.
- DCHECK(window_map_.Get().size() == 0);
+ DCHECK(window_map_.Get().empty());
// Dump the pasteboards we built up.
[DumpRenderTreePasteboard releaseLocalPasteboards];