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

Unified Diff: net/tools/crash_cache/crash_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/stress_cache.cc ('k') | net/tools/dump_cache/upgrade.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/crash_cache/crash_cache.cc
diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc
index 5272e17b1119ab5e24472c440d86efbb77f72e2d..36c64e27637d20df5fce70fa8dea69b1c9b4fd38 100644
--- a/net/tools/crash_cache/crash_cache.cc
+++ b/net/tools/crash_cache/crash_cache.cc
@@ -214,7 +214,8 @@ int LoadOperations(const std::wstring& path, RankCrashes action) {
DCHECK(action >= disk_cache::INSERT_LOAD_1);
// Work with a tiny index table (16 entries)
- disk_cache::BackendImpl* cache = new disk_cache::BackendImpl(path, 0xf);
+ disk_cache::BackendImpl* cache =
+ new disk_cache::BackendImpl(FilePath::FromWStringHack(path), 0xf);
if (!cache || !cache->SetMaxSize(0x100000) || !cache->Init() ||
cache->GetEntryCount())
return GENERIC;
« no previous file with comments | « net/disk_cache/stress_cache.cc ('k') | net/tools/dump_cache/upgrade.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698