[NativeFS] Slightly tweak accepted types in the file dialog.
Rather than sorting all extensions, keep the website provided extensions first and append the mime-type derived extensions to that list. This should give the website more control over what extension gets appended to a file name if the user doesn't include an extension themselves. Additionally pass 1 as file_type_index, to select the first type by default. Most file dialog implementations did this anyway when passing 0, but it seems better to be explicit about what type to select by default. Bug: 1103133 Change-Id: I531f13e72bdaa4de8d7b3270da21a577ebe56e82 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2288429 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#786556}
Showing
Please register or sign in to comment