commit | 3429b21df57fb03c658e5b63ae81a42f4316a978 | [log] [tgz] |
---|---|---|
author | Sam McNally <sammc@chromium.org> | Fri Dec 07 01:25:24 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Dec 07 01:25:24 2018 |
tree | 2fcc4c9fc2d1ddd3ae85ea0c54f83ba5c829e93c | |
parent | 3fd190dee907661320a5bfc5963d615406fffd35 [diff] |
Add ui::SelectFileDialog::FileTypeInfo::ANY_PATH_OR_URL. For most file select dialogs, hosted docs that can only be accessed via their URLs are not useful to select. Only browser file-open dialogs can meaningfully interact with these virtual files, translating their paths into URLs. Other dialogs return unusable file paths that cannot be opened as regular files, causing unnecessary and confusing failures. Add a FileTypeInfo enumerator, ANY_PATH_OR_URL, for clients to opt into accepting such virtual files, used by Browser. In dialogs not opting into this mode, disallow selecting hosted docs. Bug: 843881 Change-Id: I8abc6408e94d60d6e8b3889b0899038c90789119 Reviewed-on: https://chromium-review.googlesource.com/c/1360451 Reviewed-by: Noel Gordon <noel@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/master@{#614556}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .