Add a note to avoid using base::CreateNewTempDirectory().
Please use ScopedTempDir instead. No code change. Just updating comments. Bug: 561597 Change-Id: I9f0e70784c1527958c38731500362b5d7ad3c2a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2848525 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org> Cr-Commit-Position: refs/heads/master@{#875799}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
d343ee76e0
commit
2a55b44e3a
@ -343,6 +343,10 @@ BASE_EXPORT ScopedFILE CreateAndOpenTemporaryStream(FilePath* path);
|
||||
BASE_EXPORT ScopedFILE CreateAndOpenTemporaryStreamInDir(const FilePath& dir,
|
||||
FilePath* path);
|
||||
|
||||
// Do NOT USE in new code. Use ScopedTempDir instead.
|
||||
// TODO(crbug.com/561597) Remove existing usage and make this an implementation
|
||||
// detail inside ScopedTempDir.
|
||||
//
|
||||
// Create a new directory. If prefix is provided, the new directory name is in
|
||||
// the format of prefixyyyy.
|
||||
// NOTE: prefix is ignored in the POSIX implementation.
|
||||
|
Reference in New Issue
Block a user