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

Unified Diff: net/tools/dump_cache/upgrade.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/tools/crash_cache/crash_cache.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dump_cache/upgrade.cc
diff --git a/net/tools/dump_cache/upgrade.cc b/net/tools/dump_cache/upgrade.cc
index de0f878a50557af2f79a7a1c8de681fa324b6db6..566eb0b32f12b584824f0d02baa5ec15077501ee 100644
--- a/net/tools/dump_cache/upgrade.cc
+++ b/net/tools/dump_cache/upgrade.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/file_path.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
@@ -301,7 +302,7 @@ bool MasterSM::DoInit() {
if (dump_to_disk_) {
writer_ = new DiskDumper(path_);
} else {
- cache_.reset(new disk_cache::BackendImpl(path_));
+ cache_.reset(new disk_cache::BackendImpl(FilePath::FromWStringHack(path_)));
if (!cache_->Init()) {
printf("Unable to initialize new files\n");
return false;
@@ -509,7 +510,7 @@ class SlaveSM : public BaseSM {
public:
SlaveSM(const std::wstring& path, HANDLE channel)
: BaseSM(channel), iterator_(NULL) {
- cache_.reset(new disk_cache::BackendImpl(path));
+ cache_.reset(new disk_cache::BackendImpl(FilePath::FromWStringHack(path)));
if (!cache_->Init()) {
printf("Unable to open cache files\n");
return;
« no previous file with comments | « net/tools/crash_cache/crash_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698