[FS] Use MoveFileLocal instead of Move to rename a file when write completes.
This ensures we always do a rename instead of a copy+delete. Also losens the checks in MoveFileLocal to actually allow this, FileSystemURL::IsSameFileSystem is stricter than necessary, as long as two FileSystemURLs share the same origin and final file system type a local move should be fine, regardless of what filesystem_id either URL has. Bug: 1120291 Change-Id: Ic06bbbb9a7b03c856272e1fb1e50dd026606e448 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2369352Reviewed-by:Victor Costan <pwnall@chromium.org> Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#800715}
Showing
Please register or sign in to comment