summaryrefslogtreecommitdiffstats
path: root/net/tools/dump_cache
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 14:55:12 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-11 14:55:12 +0000
commit0b733220c5fbef986647fce040c1b5d5e48be2b6 (patch)
tree72caaec198bd07c1e468c2a4805b00067da78126 /net/tools/dump_cache
parent64596e5e583f0c64124da1a79e496d6e063c25fa (diff)
downloadchromium_src-0b733220c5fbef986647fce040c1b5d5e48be2b6.zip
chromium_src-0b733220c5fbef986647fce040c1b5d5e48be2b6.tar.gz
chromium_src-0b733220c5fbef986647fce040c1b5d5e48be2b6.tar.bz2
Move file enumeration to filepaths.
Review URL: http://codereview.chromium.org/13315 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6784 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/dump_cache')
-rw-r--r--net/tools/dump_cache/dump_files.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc
index 1275254..4425d61 100644
--- a/net/tools/dump_cache/dump_files.cc
+++ b/net/tools/dump_cache/dump_files.cc
@@ -277,9 +277,10 @@ int DumpHeaders(const std::wstring input_path) {
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);
}