summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream_posix.cc
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 21:38:11 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 21:38:11 +0000
commit07167e8f26d8c0272dd528944f0d105aa2962bab (patch)
tree4afb3d77169a9f1ac873a86cb3eafa824d6e47a0 /net/base/file_stream_posix.cc
parent25a873babf94d9e1647a9722d313b4e52286220d (diff)
downloadchromium_src-07167e8f26d8c0272dd528944f0d105aa2962bab.zip
chromium_src-07167e8f26d8c0272dd528944f0d105aa2962bab.tar.gz
chromium_src-07167e8f26d8c0272dd528944f0d105aa2962bab.tar.bz2
Change FileStream to use FilePath instead of wstring.
Review URL: http://codereview.chromium.org/18764 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/file_stream_posix.cc')
-rw-r--r--net/base/file_stream_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc
index 53589166..abef9c2 100644
--- a/net/base/file_stream_posix.cc
+++ b/net/base/file_stream_posix.cc
@@ -74,14 +74,14 @@ static int64 MapErrorCode(int err) {
}
}
-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);