Keep file types ordered in mac file dialog.
The first file type will be used as default extension in save dialogs. Previously the mac implementation of the save dialog would arbitrarily re-order the passed in file types (by adding them all to a set, and using the resulting order), which makes it impossible for callers to actually enforce what extension should be used in save dialogs. This fixes this behavior by keeping the order of file types as passed in, only using the set to avoid duplication. Bug: 1103133 Change-Id: I08d9d944eee977a1c99c1b1ecd72f6bb2c9afdcd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2582823 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#835751}
Showing
Please register or sign in to comment