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

Unified Diff: mojo/runner/context.cc

Issue 1342093002: Mandoline: let html_viewer handle more contents (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 | « mojo/runner/BUILD.gn ('k') | mojo/shell/fetcher.h » ('j') | 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 de76f6af6334e63570e3d91aa53831c10da2efcb..24526b4e9a17116a0eaf67096fefbf6157d29a38 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -65,6 +65,7 @@ void InitContentHandlers(shell::ApplicationManager* manager,
manager->RegisterContentHandler("application/pdf", GURL("mojo:pdf_viewer"));
manager->RegisterContentHandler("image/png", GURL("mojo:png_viewer"));
manager->RegisterContentHandler("text/html", GURL("mojo:html_viewer"));
+ manager->RegisterContentHandler("text/plain", GURL("mojo:html_viewer"));
// Command-line-specified content handlers.
std::string handlers_spec =
« no previous file with comments | « mojo/runner/BUILD.gn ('k') | mojo/shell/fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698