summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 14:36:09 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 14:36:09 +0000
commitd84d00ee8720f26ffedc009f36fe4184c281f64d (patch)
tree1dafee29ff0092a629c2261f7465df2e5ba57ee6 /base/file_util.h
parent2359c08fb16eb3ac74b265067888b69ce6c4cbdb (diff)
downloadchromium_src-d84d00ee8720f26ffedc009f36fe4184c281f64d.zip
chromium_src-d84d00ee8720f26ffedc009f36fe4184c281f64d.tar.gz
chromium_src-d84d00ee8720f26ffedc009f36fe4184c281f64d.tar.bz2
Fix some bad uses of GetTempDir.
(Just a first step. I can't remove GetTempDir yet though.) BUG=none TEST=unit tests http://codereview.chromium.org/3075008/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 84b9b68..bfd819e 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -235,6 +235,8 @@ bool CopyAndDeleteDirectory(const FilePath& from_path,
bool IsDirectoryEmpty(const FilePath& dir_path);
// Get the temporary directory provided by the system.
+// WARNING: DON'T USE THIS. If you want to create a temporary file, use one of
+// the functions below.
bool GetTempDir(FilePath* path);
// Get a temporary directory for shared memory files.
// Only useful on POSIX; redirects to GetTempDir() on Windows.