forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes base::GetUniquePathNumber, as there really isn't a way that method can be used correctly other than to generate the resulting path. One call-site that tried to use GetUniquePathNumber to truncate the generated path after getting the uniquifing number (which defeats the whole point of calling GetUniquePathNumber) has been rewritten to call GetUniquePath at the end instead. This also adds a new GetUniquePathWithSuffixFormat overload, which lets callers pass in a format different from the standard " (%d)" format. This is used by for example linux shell integration code to generate unique file names for .desktop files (which can't have spaces in their path). Bug: 336633543 Change-Id: I7dd4a7757835ffdcef2a693a21bc6e8c84056878 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5502054 Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Carlos Knippschild <[email protected]> Reviewed-by: Greg Thompson <[email protected]> Commit-Queue: Marijn Kruisselbrink <[email protected]> Cr-Commit-Position: refs/heads/main@{#1295137}
- Loading branch information
1 parent
3c8f4d8
commit 11da37b
Showing
6 changed files
with
108 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters