summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_test_util.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 20:34:02 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 20:34:02 +0000
commit399b870529860ccbf7e2743291edc3aaeb089ca3 (patch)
tree4f64211f2f1d69dc5979906cbe8bde08f898caf1 /net/disk_cache/disk_cache_test_util.cc
parent982e781d80d395cd9749de92d2efd6a309168cd3 (diff)
downloadchromium_src-399b870529860ccbf7e2743291edc3aaeb089ca3.zip
chromium_src-399b870529860ccbf7e2743291edc3aaeb089ca3.tar.gz
chromium_src-399b870529860ccbf7e2743291edc3aaeb089ca3.tar.bz2
Deprecate wstring version of PathService::Get() in net.
Review URL: http://codereview.chromium.org/100240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_test_util.cc')
-rw-r--r--net/disk_cache/disk_cache_test_util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/disk_cache/disk_cache_test_util.cc b/net/disk_cache/disk_cache_test_util.cc
index 013c27a..99c4500 100644
--- a/net/disk_cache/disk_cache_test_util.cc
+++ b/net/disk_cache/disk_cache_test_util.cc
@@ -17,13 +17,13 @@ using base::TimeDelta;
namespace {
std::wstring BuildCachePath(const std::wstring& name) {
- std::wstring path;
+ FilePath path;
PathService::Get(base::DIR_TEMP, &path);
- file_util::AppendToPath(&path, name);
+ path = path.Append(FilePath::FromWStringHack(name));
if (!file_util::PathExists(path))
file_util::CreateDirectory(path);
- return path;
+ return path.ToWStringHack();
}
} // namespace.