Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: net/disk_cache/cache_util_posix.cc

Issue 10855002: Change the type of file_type parameter to int, as the parameter actually takes or-ed bitmasks, (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix missing comma. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/directory_lister.cc ('k') | webkit/fileapi/file_system_database_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_util_posix.cc
diff --git a/net/disk_cache/cache_util_posix.cc b/net/disk_cache/cache_util_posix.cc
index ec5f931b2ccfb143f8b2b5d72b90e00d178bb38f..9c2cf123940e13058561ff849f0d04eb1816e958 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)) {
« no previous file with comments | « net/base/directory_lister.cc ('k') | webkit/fileapi/file_system_database_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698