diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 22:35:13 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 22:35:13 +0000 |
commit | 3fc364f9059372255062f7e5d009cce3b4d349f2 (patch) | |
tree | 3ab7e808ce97ce2fd901b1531a366bda8ca692d5 /net/disk_cache/block_files_unittest.cc | |
parent | 892b70d03e3b6aa795b43a4bc70c77249e469958 (diff) | |
download | chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.zip chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.tar.gz chromium_src-3fc364f9059372255062f7e5d009cce3b4d349f2.tar.bz2 |
Relanding Coverity fixes from http://codereview.chromium.org/159862 excluding the broken ones.
The change of GURL -> const GURL& caused some nasty crash and the change got reverted.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/164095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/block_files_unittest.cc')
-rw-r--r-- | net/disk_cache/block_files_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/block_files_unittest.cc b/net/disk_cache/block_files_unittest.cc index ce76fd6..b4ce107 100644 --- a/net/disk_cache/block_files_unittest.cc +++ b/net/disk_cache/block_files_unittest.cc @@ -14,7 +14,7 @@ using base::Time; namespace { // Returns the number of files in this folder. -int NumberOfFiles(const std::wstring path) { +int NumberOfFiles(const std::wstring& path) { file_util::FileEnumerator iter(FilePath::FromWStringHack(path), false, file_util::FileEnumerator::FILES); int count = 0; |