| Index: mojo/shell/context.cc
|
| diff --git a/mojo/shell/context.cc b/mojo/shell/context.cc
|
| index 706c511489a72a1f4564f3c3f22e7cc3536ee1c5..48fba5c98f915386569413409eb93e01d6d579c2 100644
|
| --- a/mojo/shell/context.cc
|
| +++ b/mojo/shell/context.cc
|
| @@ -72,6 +72,11 @@ static base::LazyInstance<Setup>::Leaky setup = LAZY_INSTANCE_INITIALIZER;
|
|
|
| void InitContentHandlers(DynamicApplicationLoader* loader,
|
| base::CommandLine* command_line) {
|
| + // Default content handlers.
|
| + loader->RegisterContentHandler("image/png", GURL("mojo://mojo_png_viewer/"));
|
| + loader->RegisterContentHandler("text/html", GURL("mojo://mojo_html_viewer/"));
|
| +
|
| + // Command-line-specified content handlers.
|
| std::string handlers_spec = command_line->GetSwitchValueASCII(
|
| switches::kContentHandlers);
|
| if (handlers_spec.empty())
|
|
|