diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 00:01:38 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-11 00:01:38 +0000 |
commit | 392264c76c724e3c31273ad1aa932a041cc12a7e (patch) | |
tree | fca9dca526bda74fa05a791b179e35e86e5c9755 /base/file_util.cc | |
parent | 27961c57893201b2914f173cb517e33f37d0ae58 (diff) | |
download | chromium_src-392264c76c724e3c31273ad1aa932a041cc12a7e.zip chromium_src-392264c76c724e3c31273ad1aa932a041cc12a7e.tar.gz chromium_src-392264c76c724e3c31273ad1aa932a041cc12a7e.tar.bz2 |
Added CreateTemporaryFileName that takes a FilePath argument.
Review URL: http://codereview.chromium.org/9752
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index f4d0504..4fdc128 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -343,6 +343,13 @@ bool ContentsEqual(const std::wstring& filename1, bool CreateDirectory(const std::wstring& full_path) { return CreateDirectory(FilePath::FromWStringHack(full_path)); } +bool CreateTemporaryFileName(std::wstring* temp_file) { + FilePath temp_file_path; + if (!CreateTemporaryFileName(&temp_file_path)) + return false; + *temp_file = temp_file_path.ToWStringHack(); + return true; +} bool GetCurrentDirectory(std::wstring* path_str) { FilePath path; if (!GetCurrentDirectory(&path)) |