commit | 42373544a5f808d4c68e6588c1eb1604e02eb8db | [log] [tgz] |
---|---|---|
author | Greg Thompson <grt@chromium.org> | Wed Aug 14 10:11:10 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 14 10:11:10 2019 |
tree | 9667b8fd8d7ad520bb60710d704502583289ef45 | |
parent | 58f0643123083b037f67a36a8071bfcb09cc35a3 [diff] |
Use StringPiece for the optional suffix in base::GetUniquePathNumber. This removes the need to create/destroy a string when calling. This change also adds a default value of an empty StringPiece to the suffix so that callers who don't care about a suffix don't need to bother with it. Finally, this change adds a unit test for the function, which it apparently never had. BUG=none TBR=vasilii@chromium.org,vakh@chromium.org,eladalon@chromium.org,jamiewalch@chromium.org,carlosk@chromium.org Change-Id: Iaf98d5237ffcc211bf9dfc2242742508f35bafac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1752302 Commit-Queue: Greg Thompson <grt@chromium.org> Auto-Submit: Greg Thompson <grt@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#686754}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .