Index: net/base/file_stream_posix.cc |
=================================================================== |
--- net/base/file_stream_posix.cc (revision 8584) |
+++ net/base/file_stream_posix.cc (working copy) |
@@ -74,14 +74,14 @@ |
} |
} |
-int FileStream::Open(const std::wstring& path, int open_flags) { |
+int FileStream::Open(const FilePath& path, int open_flags) { |
if (IsOpen()) { |
DLOG(FATAL) << "File is already open!"; |
return ERR_UNEXPECTED; |
} |
open_flags_ = open_flags; |
- file_ = base::CreatePlatformFile(path, open_flags_, NULL); |
+ file_ = base::CreatePlatformFile(path.ToWStringHack(), open_flags_, NULL); |
if (file_ == base::kInvalidPlatformFileValue) { |
LOG(WARNING) << "Failed to open file: " << errno; |
return MapErrorCode(errno); |