Commit ef477f82 authored by yzshen's avatar yzshen Committed by Commit bot

Let html_viewer handle more MIME types.

These are types that we've seen on page_cycler.typical_25.

BUG=

Review URL: https://codereview.chromium.org/1372273002

Cr-Commit-Position: refs/heads/master@{#351174}
parent adbece4b
......@@ -62,8 +62,13 @@ class Setup {
void InitContentHandlers(package_manager::PackageManagerImpl* manager,
const base::CommandLine& command_line) {
// Default content handlers.
manager->RegisterContentHandler("application/javascript",
GURL("mojo:html_viewer"));
manager->RegisterContentHandler("application/pdf", GURL("mojo:pdf_viewer"));
manager->RegisterContentHandler("image/gif", GURL("mojo:html_viewer"));
manager->RegisterContentHandler("image/jpeg", GURL("mojo:html_viewer"));
manager->RegisterContentHandler("image/png", GURL("mojo:png_viewer"));
manager->RegisterContentHandler("text/css", GURL("mojo:html_viewer"));
manager->RegisterContentHandler("text/html", GURL("mojo:html_viewer"));
manager->RegisterContentHandler("text/plain", GURL("mojo:html_viewer"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment