From 9fefee68b27573a37c00bd428d62b72eecbc8993 Mon Sep 17 00:00:00 2001 From: "cbentzel@chromium.org" Date: Sat, 23 Oct 2010 10:06:47 +0000 Subject: ScopedTempDir does not allow multiple Create* or Set calls without intervening Delete/Take calls. BUG=None TEST=base_unittests --gtest_filter="*ScopedTempDir*", all other tests pass. Review URL: http://codereview.chromium.org/3980006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63641 0039d316-1c4b-4281-b951-d872f2087c98 --- base/scoped_temp_dir.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/scoped_temp_dir.h') diff --git a/base/scoped_temp_dir.h b/base/scoped_temp_dir.h index 66d52f6..6845562 100644 --- a/base/scoped_temp_dir.h +++ b/base/scoped_temp_dir.h @@ -11,6 +11,10 @@ // deletion occurs during the destructor, no further error handling is possible // if the directory fails to be deleted. As a result, deletion is not // guaranteed by this class. +// +// Multiple calls to the methods which establish a temporary directory +// (CreateUniqueTempDir, CreateUniqueTempDirUnderPath, and Set) must have +// intervening calls to Delete or Take, or the calls will fail. #include "base/file_path.h" -- cgit v1.1