diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 14:20:12 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 14:20:12 +0000 |
commit | 2d57f5d07890c173c79432b64e215b6bb049444a (patch) | |
tree | e84880ad33d40818ff47a2ac72ac22a91c8b61ca /base/scoped_temp_dir.h | |
parent | 7a0c14d18c721f08332eaab1094e918027e0b132 (diff) | |
download | chromium_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.h | 8 |
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. |