From f6b8ce31c12a8fd5c969608bfdec0e2e8f1e99c3 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Wed, 2 Mar 2011 00:03:18 +0000 Subject: 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 --- webkit/fileapi/file_system_path_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webkit/fileapi') 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]) || -- cgit v1.1