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

Unified Diff: net/tools/dump_cache/dump_files.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/disk_cache/cache_util_posix.cc ('k') | webkit/tools/test_shell/image_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dump_cache/dump_files.cc
===================================================================
--- net/tools/dump_cache/dump_files.cc (revision 6739)
+++ net/tools/dump_cache/dump_files.cc (working copy)
@@ -277,9 +277,10 @@
std::wstring pattern(kDataPrefix);
pattern.append(L"*");
- file_util::FileEnumerator iter(input_path, false,
+ file_util::FileEnumerator iter(FilePath::FromWStringHack(input_path), false,
file_util::FileEnumerator::FILES, pattern);
- for (std::wstring file = iter.Next(); !file.empty(); file = iter.Next()) {
+ for (std::wstring file = iter.Next().ToWStringHack(); !file.empty();
+ file = iter.Next()) {
DumpBlockHeader(file);
}
« no previous file with comments | « net/disk_cache/cache_util_posix.cc ('k') | webkit/tools/test_shell/image_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698