summaryrefslogtreecommitdiffstats
path: root/base/scoped_temp_dir.h
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 14:20:12 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 14:20:12 +0000
commit2d57f5d07890c173c79432b64e215b6bb049444a (patch)
treee84880ad33d40818ff47a2ac72ac22a91c8b61ca /base/scoped_temp_dir.h
parent7a0c14d18c721f08332eaab1094e918027e0b132 (diff)
downloadchromium_src-2d57f5d07890c173c79432b64e215b6bb049444a.zip
chromium_src-2d57f5d07890c173c79432b64e215b6bb049444a.tar.gz
chromium_src-2d57f5d07890c173c79432b64e215b6bb049444a.tar.bz2
Added WARN_UNUSED_RESULT to ScopedTempDir methods.
BUG=NONE TEST=all targets build, tests pass. Review URL: http://codereview.chromium.org/6042009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/scoped_temp_dir.h')
-rw-r--r--base/scoped_temp_dir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/scoped_temp_dir.h b/base/scoped_temp_dir.h
index f44bcca8..4286d28 100644
--- a/base/scoped_temp_dir.h
+++ b/base/scoped_temp_dir.h
@@ -28,17 +28,17 @@ class ScopedTempDir {
// Creates a unique directory in TempPath, and takes ownership of it.
// See file_util::CreateNewTemporaryDirectory.
- bool CreateUniqueTempDir();
+ bool CreateUniqueTempDir() WARN_UNUSED_RESULT;
// Creates a unique directory under a given path, and takes ownership of it.
- bool CreateUniqueTempDirUnderPath(const FilePath& path);
+ bool CreateUniqueTempDirUnderPath(const FilePath& path) WARN_UNUSED_RESULT;
// Takes ownership of directory at |path|, creating it if necessary.
// Don't call multiple times unless Take() has been called first.
- bool Set(const FilePath& path);
+ bool Set(const FilePath& path) WARN_UNUSED_RESULT;
// Deletes the temporary directory wrapped by this object.
- bool Delete();
+ bool Delete() WARN_UNUSED_RESULT;
// Caller takes ownership of the temporary directory so it won't be destroyed
// when this object goes out of scope.