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

Unified Diff: mojo/runner/context.cc

Issue 1115363002: mojo: Use ContentHandlers to bundle multiple Applications into a module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 9f96cda1d2e1aaebf5cf8301b50278c5f4d16778..2d96fc851201ca165af65eb27467fceca91b98a6 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -110,6 +110,11 @@ void InitContentHandlers(shell::ApplicationManager* manager,
manager->RegisterContentHandler("image/png", GURL("mojo:png_viewer"));
manager->RegisterContentHandler("text/html", GURL("mojo:html_viewer"));
+ // TODO(erg): We should probably handle this differently; these could be
+ // autogenerated from package manifests.
+ manager->RegisterApplicationPackageRedirect(GURL("mojo:clipboard"),
+ GURL("mojo:core_services"));
+
// Command-line-specified content handlers.
std::string handlers_spec =
command_line.GetSwitchValueASCII(switches::kContentHandlers);

Powered by Google App Engine
This is Rietveld 408576698