Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: mojo/runner/context.cc

Issue 1372273002: Let html_viewer handle more MIME types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 0f59f7d08bc017928b778d3a218a2f8c5d3a0788..c7bda8c9c237d34ae3b4402250d1d69540843ae7 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -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"));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698