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

Unified Diff: net/disk_cache/cache_util_posix.cc

Issue 13315: Move file enumeration to filepaths. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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') | net/tools/dump_cache/dump_files.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
===================================================================
--- net/disk_cache/cache_util_posix.cc (revision 6739)
+++ net/disk_cache/cache_util_posix.cc (working copy)
@@ -16,9 +16,10 @@
}
void DeleteCache(const std::wstring& path, bool remove_folder) {
- file_util::FileEnumerator iter(path, /* recursive */ false,
+ file_util::FileEnumerator iter(FilePath::FromWStringHack(path),
+ /* recursive */ false,
file_util::FileEnumerator::FILES);
- for (std::wstring file = iter.Next(); !file.empty(); file = iter.Next()) {
+ for (FilePath file = iter.Next(); !file.value().empty(); file = iter.Next()) {
if (!file_util::Delete(file, /* recursive */ false))
NOTREACHED();
}
« no previous file with comments | « net/base/directory_lister.cc ('k') | net/tools/dump_cache/dump_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698