From cda30008a7a30deb7292d61e2a4f176b0c328dc2 Mon Sep 17 00:00:00 2001
From: "erikkay@google.com"
 <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Mon, 26 Jan 2009 21:56:10 +0000
Subject: Fix compile error in dump_files (didn't catch the error since
 dump_cache isn't in chrome.sln).

TBR=rvargas

Review URL: http://codereview.chromium.org/18782

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8666 0039d316-1c4b-4281-b951-d872f2087c98
---
 net/tools/dump_cache/dump_files.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/tools/dump_cache/dump_files.cc b/net/tools/dump_cache/dump_files.cc
index 85a4f24..1d8555a 100644
--- a/net/tools/dump_cache/dump_files.cc
+++ b/net/tools/dump_cache/dump_files.cc
@@ -25,7 +25,8 @@ const wchar_t kDataPrefix[] = L"data_";
 // Reads the |header_size| bytes from the beginning of file |name|.
 bool ReadHeader(const std::wstring name, char* header, int header_size) {
   net::FileStream file;
-  file.Open(name, base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
+  file.Open(FilePath::FromWStringHack(name),
+      base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
   if (!file.IsOpen()) {
     printf("Unable to open file %ls\n", name.c_str());
     return false;
-- 
cgit v1.1