diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 03:42:44 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 03:42:44 +0000 |
commit | 5fc341a9731fd518bbe6314a3eec3ebc98109de7 (patch) | |
tree | 0e92feba0ba70a245b2bc519bf510bdae79909b8 /base | |
parent | 2ac610f6d17d02e62e73ea69a5d7eceedece95c8 (diff) | |
download | chromium_src-5fc341a9731fd518bbe6314a3eec3ebc98109de7.zip chromium_src-5fc341a9731fd518bbe6314a3eec3ebc98109de7.tar.gz chromium_src-5fc341a9731fd518bbe6314a3eec3ebc98109de7.tar.bz2 |
file_util: Fix some callers of CreateNewTempDirectory to remove the deprecated version.
BUG=None
TEST=unit_tests
Patch from Thiago Farina <thiago.farina@gmail.com>.
Review URL: http://codereview.chromium.org/385112
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_util.cc | 13 | ||||
-rw-r--r-- | base/file_util.h | 3 |
2 files changed, 0 insertions, 16 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index 8d1b517..e5c8f5a 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -347,19 +347,6 @@ bool ContentsEqual(const std::wstring& filename1, bool CreateDirectory(const std::wstring& full_path) { return CreateDirectory(FilePath::FromWStringHack(full_path)); } -bool CreateNewTempDirectory(const std::wstring& prefix, - std::wstring* new_temp_path) { -#if defined(OS_WIN) - FilePath::StringType dir_prefix(prefix); -#elif defined(OS_POSIX) - FilePath::StringType dir_prefix = WideToUTF8(prefix); -#endif - FilePath temp_path; - if (!CreateNewTempDirectory(dir_prefix, &temp_path)) - return false; - *new_temp_path = temp_path.ToWStringHack(); - return true; -} bool Delete(const std::wstring& path, bool recursive) { return Delete(FilePath::FromWStringHack(path), recursive); } diff --git a/base/file_util.h b/base/file_util.h index c86e6e4..60e9793 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -290,9 +290,6 @@ bool CreateTemporaryFileInDir(const FilePath& dir, // If success, return true and output the full path of the directory created. bool CreateNewTempDirectory(const FilePath::StringType& prefix, FilePath* new_temp_path); -// Deprecated temporary compatibility function. -bool CreateNewTempDirectory(const std::wstring& prefix, - std::wstring* new_temp_path); // Creates a directory, as well as creating any parent directories, if they // don't exist. Returns 'true' on successful creation, or if the directory |