diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 16:33:46 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-08 16:33:46 +0000 |
commit | 804cde48896d38246761d0f543fd938657832bfa (patch) | |
tree | 190f201f88139e05bf35a50a673320dccb832308 /net/tools/dump_cache | |
parent | 465faa29046328890a224677db522f1aece8cad0 (diff) | |
download | chromium_src-804cde48896d38246761d0f543fd938657832bfa.zip chromium_src-804cde48896d38246761d0f543fd938657832bfa.tar.gz chromium_src-804cde48896d38246761d0f543fd938657832bfa.tar.bz2 |
Remove some ToWStringHack()s that are in Windows-only code.
BUG=69467
Review URL: http://codereview.chromium.org/6286156
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/dump_cache')
-rw-r--r-- | net/tools/dump_cache/cache_dumper.cc | 2 | ||||
-rw-r--r-- | net/tools/dump_cache/dump_files.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/tools/dump_cache/cache_dumper.cc b/net/tools/dump_cache/cache_dumper.cc index 9eee058..0335516 100644 --- a/net/tools/dump_cache/cache_dumper.cc +++ b/net/tools/dump_cache/cache_dumper.cc @@ -83,7 +83,7 @@ int DiskDumper::CreateEntry(const std::string& key, // There is no way to prepend to a filename. We simply *have* // to convert to a wstring to do this. std::wstring name = kLongFilenamePrefix; - name.append(entry_path_.ToWStringHack()); + name.append(entry_path_.value()); entry_path_ = FilePath(name); #endif diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc index bffc6b7..8f65df3 100644 --- a/net/tools/dump_cache/dump_files.cc +++ b/net/tools/dump_cache/dump_files.cc @@ -293,10 +293,10 @@ int DumpHeaders(const std::wstring& input_path) { std::wstring pattern(kDataPrefix); pattern.append(L"*"); - file_util::FileEnumerator iter(FilePath::FromWStringHack(input_path), false, + file_util::FileEnumerator iter(FilePath(input_path), false, file_util::FileEnumerator::FILES, pattern); - for (std::wstring file = iter.Next().ToWStringHack(); !file.empty(); - file = iter.Next().ToWStringHack()) { + for (std::wstring file = iter.Next().value(); !file.empty(); + file = iter.Next().value()) { DumpBlockHeader(file); } |