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

Unified Diff: net/tools/dump_cache/dump_files.cc

Issue 274012: Convert BlockFiles to use FilePath instead of wstring. (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
Index: net/tools/dump_cache/dump_files.cc
diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc
index 2fcf7a4fdcbe2ba0ec244d6d1487883a4326fc2b..bfaa9d19092fd0597ebab2c9ff23683caea93366 100644
--- a/net/tools/dump_cache/dump_files.cc
+++ b/net/tools/dump_cache/dump_files.cc
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <string>
+#include "base/file_path.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "net/base/file_stream.h"
@@ -106,7 +107,9 @@ void DumpBlockHeader(const std::wstring& name) {
class CacheDumper {
public:
explicit CacheDumper(const std::wstring& path)
- : path_(path), block_files_(path), index_(NULL) {}
+ : path_(path),
+ block_files_(FilePath::FromWStringHack(path)),
+ index_(NULL) {}
bool Init();
« net/disk_cache/disk_cache_test_util.cc ('K') | « net/disk_cache/disk_cache_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698