| Index: base/file_util.cc
|
| diff --git a/base/file_util.cc b/base/file_util.cc
|
| index 1f8ba8193d90e7759d4a093d4226475b230a1712..f6d8657744d606e611a5f30610369465c3c9b229 100644
|
| --- a/base/file_util.cc
|
| +++ b/base/file_util.cc
|
| @@ -153,6 +153,14 @@ bool IsDirectoryEmpty(const FilePath& dir_path) {
|
| return false;
|
| }
|
|
|
| +FILE* CreateAndOpenTemporaryFile(FilePath* path) {
|
| + FilePath directory;
|
| + if (!GetTempDir(&directory))
|
| + return NULL;
|
| +
|
| + return CreateAndOpenTemporaryFileInDir(directory, path);
|
| +}
|
| +
|
| } // namespace base
|
|
|
| // -----------------------------------------------------------------------------
|
| @@ -163,14 +171,6 @@ using base::FileEnumerator;
|
| using base::FilePath;
|
| using base::kMaxUniqueFiles;
|
|
|
| -FILE* CreateAndOpenTemporaryFile(FilePath* path) {
|
| - FilePath directory;
|
| - if (!GetTempDir(&directory))
|
| - return NULL;
|
| -
|
| - return CreateAndOpenTemporaryFileInDir(directory, path);
|
| -}
|
| -
|
| bool CreateDirectory(const base::FilePath& full_path) {
|
| return CreateDirectoryAndGetError(full_path, NULL);
|
| }
|
|
|