| Index: base/scoped_temp_dir.cc
|
| diff --git a/base/scoped_temp_dir.cc b/base/scoped_temp_dir.cc
|
| index 958dcbcb606204a48460605217b78fb7966dc796..a510ddfca2130da8ccc86de44b003fd5c4abde4d 100644
|
| --- a/base/scoped_temp_dir.cc
|
| +++ b/base/scoped_temp_dir.cc
|
| @@ -11,8 +11,7 @@ ScopedTempDir::ScopedTempDir() {
|
| }
|
|
|
| ScopedTempDir::~ScopedTempDir() {
|
| - if (!path_.empty() && !file_util::Delete(path_, true))
|
| - LOG(ERROR) << "ScopedTempDir unable to delete " << path_.value();
|
| + Delete();
|
| }
|
|
|
| bool ScopedTempDir::CreateUniqueTempDir() {
|
| @@ -50,6 +49,12 @@ bool ScopedTempDir::Set(const FilePath& path) {
|
| return true;
|
| }
|
|
|
| +void ScopedTempDir::Delete() {
|
| + if (!path_.empty() && !file_util::Delete(path_, true))
|
| + LOG(ERROR) << "ScopedTempDir unable to delete " << path_.value();
|
| + path_.clear();
|
| +}
|
| +
|
| FilePath ScopedTempDir::Take() {
|
| FilePath ret = path_;
|
| path_ = FilePath();
|
|
|