diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 17:55:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 17:55:52 +0000 |
commit | 03d9afc0b775748203170a27014a3ee3500aecc2 (patch) | |
tree | d911fe4a8ffa53ef58c25689011036399f327b16 /base/file_util.cc | |
parent | e7a32a13a89efea50f38288ebeadbc3189d971de (diff) | |
download | chromium_src-03d9afc0b775748203170a27014a3ee3500aecc2.zip chromium_src-03d9afc0b775748203170a27014a3ee3500aecc2.tar.gz chromium_src-03d9afc0b775748203170a27014a3ee3500aecc2.tar.bz2 |
Move temp file functions to base namespace.
BUG=
Review URL: https://codereview.chromium.org/99923002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index 1f8ba81..f6d8657 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); } |