Index: base/files/file.h |
diff --git a/base/files/file.h b/base/files/file.h |
index f50a8b198a896ac05d92ec98cd85734862fb2465..89077b41c1d8d03a9aa1e33ea822b9fb9454f807 100644 |
--- a/base/files/file.h |
+++ b/base/files/file.h |
@@ -182,10 +182,6 @@ class BASE_EXPORT File { |
// Creates or opens the given file. |
void Initialize(const FilePath& name, uint32 flags); |
- // Creates or opens the given file, allowing paths with traversal ('..') |
- // components. Use only with extreme care. |
- void InitializeUnsafe(const FilePath& name, uint32 flags); |
- |
bool IsValid() const; |
// Returns true if a new file was created (or an old one truncated to zero |
@@ -354,6 +350,10 @@ class BASE_EXPORT File { |
}; |
#endif |
+ // Creates or opens the given file. Only called if |name| has no traversal |
+ // ('..') components. |
+ void DoInitialize(const FilePath& name, uint32 flags); |
+ |
// TODO(tnagel): Reintegrate into Flush() once histogram isn't needed anymore, |
// cf. issue 473337. |
bool DoFlush(); |