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

Unified Diff: mojo/shell/context.cc

Issue 690583002: Add PDF viewer example. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase Created 6 years, 2 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 | « examples/png_viewer/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/context.cc
diff --git a/mojo/shell/context.cc b/mojo/shell/context.cc
index 215ed7b2259d98389f2b6f79f3b620f131f3d602..d7f8e30d5428a96063bd775e4b8572b6589b9fdd 100644
--- a/mojo/shell/context.cc
+++ b/mojo/shell/context.cc
@@ -69,6 +69,7 @@ static base::LazyInstance<Setup>::Leaky setup = LAZY_INSTANCE_INITIALIZER;
void InitContentHandlers(DynamicApplicationLoader* loader,
base::CommandLine* command_line) {
// Default content handlers.
+ loader->RegisterContentHandler("application/pdf", GURL("mojo://pdf_viewer/"));
loader->RegisterContentHandler("image/png", GURL("mojo://png_viewer/"));
loader->RegisterContentHandler("text/html", GURL("mojo://html_viewer/"));
« no previous file with comments | « examples/png_viewer/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698