Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3145)

Unified Diff: base/files/scoped_temp_dir.h

Issue 2275553005: //base: Make ScopedTempDir::path() a GetPath() with a DCHECK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/files/important_file_writer_unittest.cc ('k') | base/files/scoped_temp_dir.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/scoped_temp_dir.h
diff --git a/base/files/scoped_temp_dir.h b/base/files/scoped_temp_dir.h
index b1f2f5b87400f691799585294e37485876cd9584..97f5d2a246a2c0dbba62d68d973c8d69475b5575 100644
--- a/base/files/scoped_temp_dir.h
+++ b/base/files/scoped_temp_dir.h
@@ -47,8 +47,14 @@ class BASE_EXPORT ScopedTempDir {
// when this object goes out of scope.
FilePath Take();
+ // DEPRECATED: Use GetPath instead. See https://crbug.com/640599 for more
+ // info.
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;
« no previous file with comments | « base/files/important_file_writer_unittest.cc ('k') | base/files/scoped_temp_dir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698