commit | a332cfd89084c6930277948c8a0a5cd03b5fdb02 | [log] [tgz] |
---|---|---|
author | Alex Danilo <adanilo@chromium.org> | Wed Jan 02 02:41:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 02 02:41:30 2019 |
tree | 5d06f08a55bc691f8bf382c71666d6e002ab1872 | |
parent | 00697c0f1b348c7d88200df4a6b2ba5a2db80ea2 [diff] |
Fix display of MIME type for PDF in Quickview. First part of general cleanup of MIME and file extension handling. Opening a QuickView preview of PDF files shows the MIME type correctly iff the extension is '.pdf'. If there are PDF files without an extension, or with an incorrect extension the file should be sniffed to display the correct MIME type. This is done in QuickView via the MediaGalleryAPI but was not being propagated to the QuickView metadata panel. This change corrects that, using the local file sniff data. The display of contents in QuckView is managed from the manifest, so this doesn't fix the preview itself, just the metadata. Bug: 848124 Change-Id: Ic4ef725698f96d59748da3c1097f5f9db9e20c8b Reviewed-on: https://chromium-review.googlesource.com/c/1392696 Reviewed-by: Joel Hockey <joelhockey@chromium.org> Commit-Queue: Alex Danilo <adanilo@chromium.org> Cr-Commit-Position: refs/heads/master@{#619364}
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 .