diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-17 21:01:19 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-17 21:01:19 +0000 |
commit | a9cd2a6531ed01e92ee81b136754ba00165c58cd (patch) | |
tree | 8bb8dc02ff53d9219cf8c879aaa397ac9d2709fc /base/file_util_win.cc | |
parent | 9ebffa3ea23c296d83863231eb0d58e01a56d439 (diff) | |
download | chromium_src-a9cd2a6531ed01e92ee81b136754ba00165c58cd.zip chromium_src-a9cd2a6531ed01e92ee81b136754ba00165c58cd.tar.gz chromium_src-a9cd2a6531ed01e92ee81b136754ba00165c58cd.tar.bz2 |
Implement some missing file util functions.
Review URL: http://codereview.chromium.org/11208
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r-- | base/file_util_win.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc index 355bdfd..459e3a8 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -495,10 +495,6 @@ FILE* OpenFile(const std::string& filename, const char* mode) { return file; } -FILE* OpenFile(const std::wstring& filename, const char* mode) { - return OpenFile(FilePath(filename), mode); -} - int ReadFile(const std::wstring& filename, char* data, int size) { ScopedHandle file(CreateFile(filename.c_str(), GENERIC_READ, @@ -594,9 +590,9 @@ bool GetCurrentDirectory(FilePath* dir) { } // Sets the current working directory for the process. -bool SetCurrentDirectory(const std::wstring& current_directory) { - BOOL ret = ::SetCurrentDirectory(current_directory.c_str()); - return (ret ? true : false); +bool SetCurrentDirectory(const FilePath& directory) { + BOOL ret = ::SetCurrentDirectory(directory.value().c_str()); + return ret != 0; } /////////////////////////////////////////////// |