diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 21:50:13 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-16 21:50:13 +0000 |
commit | e83eedcd41bdebf055f130051d2c84d39f27a466 (patch) | |
tree | 2108eb93717e3629397246e25b98afe3798525c9 /base/file_util_deprecated.h | |
parent | e62dbbfc6f722159733239d396098e2e0407f56f (diff) | |
download | chromium_src-e83eedcd41bdebf055f130051d2c84d39f27a466.zip chromium_src-e83eedcd41bdebf055f130051d2c84d39f27a466.tar.gz chromium_src-e83eedcd41bdebf055f130051d2c84d39f27a466.tar.bz2 |
file_util: deprecate remaining wstring functions
This removes the last wstring-accepting functions from file_util
on non-Windows platforms.
BUG=24672
Review URL: http://codereview.chromium.org/3005005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_deprecated.h')
-rw-r--r-- | base/file_util_deprecated.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/file_util_deprecated.h b/base/file_util_deprecated.h index 1554486..efffe8f 100644 --- a/base/file_util_deprecated.h +++ b/base/file_util_deprecated.h @@ -15,6 +15,10 @@ #include "build/build_config.h" +// We've successfully deprecated all of these functions on non-Windows +// platforms. + +#if defined(OS_WIN) namespace file_util { @@ -22,10 +26,6 @@ namespace file_util { FILE* OpenFile(const std::string& filename, const char* mode); FILE* OpenFile(const std::wstring& filename, const char* mode); -// We've successfully deprecated most of these functions on non-Windows -// platforms. -#if defined(OS_WIN) - // Use FilePath::DirName instead. void UpOneDirectory(std::wstring* dir); @@ -64,8 +64,8 @@ bool ReadFileToString(const std::wstring& path, std::string* contents); int ReadFile(const std::wstring& filename, char* data, int size); int WriteFile(const std::wstring& filename, const char* data, int size); -#endif // OS_WIN - } +#endif // OS_WIN + #endif // BASE_FILE_UTIL_DEPRECATED_H_ |