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}
1 file changed