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.