diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 16:07:55 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-18 16:07:55 +0000 |
commit | 33edeab42b851a5617a77caa1d65a3782a01ee7b (patch) | |
tree | d1baa44ff796c9f0c4881e9819e7e5b359489b1d /base/file_util.h | |
parent | f348b92e95dd67fef3a9a6109bc0465fb4078d6b (diff) | |
download | chromium_src-33edeab42b851a5617a77caa1d65a3782a01ee7b.zip chromium_src-33edeab42b851a5617a77caa1d65a3782a01ee7b.tar.gz chromium_src-33edeab42b851a5617a77caa1d65a3782a01ee7b.tar.bz2 |
Renames the function CreateTemporaryFilename to CreateTemporaryFile and track down all callers, also removes the
deprecated function that uses std::wstring.
BUG=3078 (http://crbug.com/3078)
TEST=run base_unittests, installer_util_unittests, net_unittests, setup_unittests, and unit_tests.
Review URL: http://codereview.chromium.org/164537
Patch from Thiago Farina.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/base/file_util.h b/base/file_util.h index 71780f8..1c1a79f 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -283,12 +283,7 @@ bool GetShmemTempDir(FilePath* path); // Creates a temporary file. The full path is placed in |path|, and the // function returns true if was successful in creating the file. The file will // be empty and all handles closed after this function returns. -// TODO(erikkay): rename this function and track down all of the callers. -// (Clarification of erik's comment: the intent is to rename the BlahFileName() -// calls into BlahFile(), since they create temp files (not temp filenames).) -bool CreateTemporaryFileName(FilePath* path); -// Deprecated temporary compatibility function. -bool CreateTemporaryFileName(std::wstring* temp_file); +bool CreateTemporaryFile(FilePath* path); // Create and open a temporary file. File is opened for read/write. // The full path is placed in |path|, and the function returns true if @@ -300,9 +295,9 @@ FILE* CreateAndOpenTemporaryShmemFile(FilePath* path); // Similar to CreateAndOpenTemporaryFile, but the file is created in |dir|. FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir, FilePath* path); -// Same as CreateTemporaryFileName but the file is created in |dir|. -bool CreateTemporaryFileNameInDir(const std::wstring& dir, - std::wstring* temp_file); +// Same as CreateTemporaryFile but the file is created in |dir|. +bool CreateTemporaryFileInDir(const FilePath& dir, + FilePath* temp_file); // Create a new directory under TempPath. If prefix is provided, the new // directory name is in the format of prefixyyyy. |