commit | f863412f4af4e6bc29bb0628b6b9427662f1a77f | [log] [tgz] |
---|---|---|
author | David Bienvenu <[email protected]> | Tue Dec 10 21:55:16 2019 |
committer | Commit Bot <[email protected]> | Tue Dec 10 21:55:16 2019 |
tree | 01b018208f78a851799bf71550301ee38ac91f90 | |
parent | 44ac154f7a9dd455f27e179253f6afdbe55e4452 [diff] [blame] |
desktop-pwas: Get pwa registration working with windows file extensions. Bug: 960245 Change-Id: Ied12e6e129388e4c7a342a8ea84f163970ef8741 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838212 Reviewed-by: Alexey Baskakov <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Reviewed-by: Greg Thompson <[email protected]> Commit-Queue: David Bienvenu <[email protected]> Cr-Commit-Position: refs/heads/master@{#723524}
diff --git a/base/files/file_util.h b/base/files/file_util.h index 571f90f8..02b8e98 100644 --- a/base/files/file_util.h +++ b/base/files/file_util.h
@@ -349,6 +349,12 @@ // base::GetTempDir) just uses the value specified by TMP or TEMP, and so can // return a short path. Returns an empty path on error. BASE_EXPORT FilePath MakeLongFilePath(const FilePath& input); + +// Creates a hard link named |to_file| to the file |from_file|. Both paths +// must be on the same volume, and |from_file| may not name a directory. +// Returns true if the hard link is created, false if it fails. +BASE_EXPORT bool CreateWinHardLink(const FilePath& to_file, + const FilePath& from_file); #endif // This function will return if the given file is a symlink or not.