summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-12 01:57:23 +0000
committerharuki@chromium.org <haruki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-12 01:57:23 +0000
commit84c3f1642184211bcf188e8f9ed763603af57511 (patch)
tree7063b340791fe3725a6b2b68047605bde1770479 /net/disk_cache
parentadb3145c1640318d837ce43cb6388500218d452e (diff)
downloadchromium_src-84c3f1642184211bcf188e8f9ed763603af57511.zip
chromium_src-84c3f1642184211bcf188e8f9ed763603af57511.tar.gz
chromium_src-84c3f1642184211bcf188e8f9ed763603af57511.tar.bz2
Change the type of file_type parameter to int, as the parameter actually takes or-ed bitmasks,
to remove static_cast<> in the callers. BUG=139130 TEST=try bots Review URL: https://chromiumcodereview.appspot.com/10855002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/cache_util_posix.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/disk_cache/cache_util_posix.cc b/net/disk_cache/cache_util_posix.cc
index ec5f931..9c2cf12 100644
--- a/net/disk_cache/cache_util_posix.cc
+++ b/net/disk_cache/cache_util_posix.cc
@@ -22,12 +22,9 @@ bool MoveCache(const FilePath& from_path, const FilePath& to_path) {
LOG(ERROR) << "Unable to create destination cache directory.";
return false;
}
- file_util::FileEnumerator iter(
- from_path,
- /* recursive */ false,
- static_cast<file_util::FileEnumerator::FileType>(
- file_util::FileEnumerator::DIRECTORIES |
- file_util::FileEnumerator::FILES));
+ file_util::FileEnumerator iter(from_path, false /* not recursive */,
+ file_util::FileEnumerator::DIRECTORIES |
+ file_util::FileEnumerator::FILES);
for (FilePath name = iter.Next(); !name.value().empty(); name = iter.Next()) {
FilePath destination = to_path.Append(name.BaseName());
if (!file_util::Move(name, destination)) {