diff options
Diffstat (limited to 'base/files/scoped_temp_dir.h')
-rw-r--r-- | base/files/scoped_temp_dir.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/files/scoped_temp_dir.h b/base/files/scoped_temp_dir.h index b1f2f5b874..a5aaf84362 100644 --- a/base/files/scoped_temp_dir.h +++ b/base/files/scoped_temp_dir.h @@ -47,7 +47,9 @@ class BASE_EXPORT ScopedTempDir { // when this object goes out of scope. FilePath Take(); - const FilePath& path() const { return path_; } + // Returns the path to the created directory. Call one of the + // CreateUniqueTempDir* methods before getting the path. + const FilePath& GetPath() const; // Returns true if path_ is non-empty and exists. bool IsValid() const; |