diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 23:02:37 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 23:02:37 +0000 |
commit | 4317c71c37dab54c55788bb68f56acf9273410c5 (patch) | |
tree | e0a4d13fb86c89a732783f6b5c4fad9b868f86b5 /net/tools | |
parent | ba4c78e5b07788094ec02c6a1b44eebd7a727926 (diff) | |
download | chromium_src-4317c71c37dab54c55788bb68f56acf9273410c5.zip chromium_src-4317c71c37dab54c55788bb68f56acf9273410c5.tar.gz chromium_src-4317c71c37dab54c55788bb68f56acf9273410c5.tar.bz2 |
Move disk_cache::MappedFile to use FilePath instead of wstring.
Also add some FilePath methods in disk_cache_util.h and obsolete
the old.
BUG=24444
Review URL: http://codereview.chromium.org/266069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rw-r--r-- | net/tools/dump_cache/dump_files.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc index 45b647c..8a9abca 100644 --- a/net/tools/dump_cache/dump_files.cc +++ b/net/tools/dump_cache/dump_files.cc @@ -140,8 +140,8 @@ bool CacheDumper::Init() { std::wstring index_name(path_); file_util::AppendToPath(&index_name, kIndexName); index_file_ = new disk_cache::MappedFile; - index_ = - reinterpret_cast<disk_cache::Index*>(index_file_->Init(index_name, 0)); + index_ = reinterpret_cast<disk_cache::Index*>(index_file_->Init( + FilePath::FromWStringHack(index_name), 0)); if (!index_) { printf("Unable to map index\n"); return false; |