Add GetUniquePath helper function to file_util.cc

As part of the work to support drag-and-drop of Outlook.exe emails and
attachments to a Chromium drop target:

https://chromium-review.googlesource.com/c/chromium/src/+/1487798/1

common code to get a unique file path was found. It was suggested in
that code review that the implementation of the helper function GetUniquePath
be put in a separate pull request.  The helper is now used in
three places that had the same logic depending on GetUniquePathNumber,
and the helper will be also used in the change above.

Bug: 322605
Change-Id: I4f6cbc676be64967af8e11e1c219722b144888dd
Reviewed-on: https://chromium-review.googlesource.com/c/1490854
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Shakti Sahu <shaktisahu@chromium.org>
Reviewed-by: Darwin Huang <huangdarwin@chromium.org>
Commit-Queue: Bruce Long <brlong@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#636458}
6 files changed