Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3935)

Unified Diff: net/disk_cache/stress_cache.cc

Issue 261045: Start migrating the disk cache to using FilePath. (Closed)
Patch Set: rebase Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/entry_impl.cc ('k') | net/tools/crash_cache/crash_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/stress_cache.cc
diff --git a/net/disk_cache/stress_cache.cc b/net/disk_cache/stress_cache.cc
index 7b5912cff27fc18d2d5a36f57d6b14ab524c5149..e1f57600dc273235a26713762b8108eb127170a6 100644
--- a/net/disk_cache/stress_cache.cc
+++ b/net/disk_cache/stress_cache.cc
@@ -78,7 +78,8 @@ void StressTheCache(int iteration) {
int cache_size = 0x800000; // 8MB
std::wstring path = GetCachePath();
path.append(L"_stress");
- disk_cache::BackendImpl* cache = new disk_cache::BackendImpl(path);
+ disk_cache::BackendImpl* cache =
+ new disk_cache::BackendImpl(FilePath::FromWStringHack(path));
cache->SetFlags(disk_cache::kNoLoadProtection | disk_cache::kNoRandom);
cache->SetMaxSize(cache_size);
cache->SetType(net::DISK_CACHE);
« no previous file with comments | « net/disk_cache/entry_impl.cc ('k') | net/tools/crash_cache/crash_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698