Index: base/scoped_temp_dir.h |
=================================================================== |
--- base/scoped_temp_dir.h (revision 67430) |
+++ base/scoped_temp_dir.h (working copy) |
@@ -38,7 +38,10 @@ |
bool Set(const FilePath& path); |
// Deletes the temporary directory wrapped by this object. |
- void Delete(); |
+ // Returns true if the directory was successfully deleted. |
+ // If the current path is empty or if the folder can't be deleted |
Paweł Hajdan Jr.
2010/11/26 21:01:20
nit: Don't mention all failure cases. I guess even
|
+ // for some reason, the return value is false. |
+ bool Delete(); |
Paweł Hajdan Jr.
2010/11/26 21:01:20
nit: Add WARN_UNUSED_RESULT from base/compiler_spe
|
// Caller takes ownership of the temporary directory so it won't be destroyed |
// when this object goes out of scope. |