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

Unified Diff: shell/switches.cc

Issue 926093003: AddOriginMapping() (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Comments Created 5 years, 10 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 | « shell/switches.h ('k') | shell/url_resolver.h » ('j') | shell/url_resolver.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/switches.cc
diff --git a/shell/switches.cc b/shell/switches.cc
index 930517c9540175f3ec940db7192a1a597e5acd6f..f84347dc3169226ec334d07a816da7410646426e 100644
--- a/shell/switches.cc
+++ b/shell/switches.cc
@@ -45,6 +45,10 @@ const char kEnableMultiprocess[] = "enable-multiprocess";
// Print the usage message and exit.
const char kHelp[] = "help";
+// Specify origin to map to base url. See url_resolver.cc for details.
+// Can be used multiple times.
+const char kMapOrigin[] = "map-origin";
+
// Map mojo: URLs to a shared library of similar name at this origin. See
// url_resolver.cc for details.
const char kOrigin[] = "origin";
@@ -63,6 +67,7 @@ const char* kSwitchArray[] = {kV,
kEnableExternalApplications,
kEnableMultiprocess,
kHelp,
+ kMapOrigin,
kOrigin,
kURLMappings};
« no previous file with comments | « shell/switches.h ('k') | shell/url_resolver.h » ('j') | shell/url_resolver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698