From 4317c71c37dab54c55788bb68f56acf9273410c5 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Tue, 13 Oct 2009 23:02:37 +0000 Subject: 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 --- net/disk_cache/mapped_file_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/disk_cache/mapped_file_posix.cc') diff --git a/net/disk_cache/mapped_file_posix.cc b/net/disk_cache/mapped_file_posix.cc index 6370ca6..f9a361b 100644 --- a/net/disk_cache/mapped_file_posix.cc +++ b/net/disk_cache/mapped_file_posix.cc @@ -13,9 +13,9 @@ namespace disk_cache { -void* MappedFile::Init(const std::wstring& name, size_t size) { +void* MappedFile::Init(const FilePath& name, size_t size) { DCHECK(!init_); - if (init_ || !File::Init(FilePath::FromWStringHack(name))) + if (init_ || !File::Init(name)) return NULL; if (!size) -- cgit v1.1