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

Unified Diff: mojo/shell/switches.cc

Issue 1057603003: Simplify mojo_shell since it's now only used for Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update scripts 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
« no previous file with comments | « mojo/shell/switches.h ('k') | mojo/shell/url_resolver_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/switches.cc
diff --git a/mojo/shell/switches.cc b/mojo/shell/switches.cc
index 2150b1970102ca93fb957fdd7179c86883525172..28e7d058a41a77440e2d23c48a47cf79ff902f3f 100644
--- a/mojo/shell/switches.cc
+++ b/mojo/shell/switches.cc
@@ -8,18 +8,6 @@
namespace switches {
-namespace {
-// This controls logging verbosity. It's not strictly a switch for mojo_shell,
-// and isn't included in the public switches, but is included here so that it
-// doesn't trigger an error at startup.
-const char kV[] = "v";
-
-} // namespace
-
-// Specify configuration arguments for a Mojo application URL. For example:
-// --args-for='mojo:wget http://www.google.com'
-const char kArgsFor[] = "args-for";
-
// Used internally by the main process to indicate that a new process should be
// a child process. Not for user use.
const char kChildProcess[] = "child-process";
@@ -67,34 +55,4 @@ const char kPredictableAppFilenames[] = "predictable-app-filenames";
// seconds or when the shell exits.
const char kTraceStartup[] = "trace-startup";
-// Specifies a set of mappings to apply when resolving urls. The value is a set
-// of ',' separated mappings, where each mapping consists of a pair of urls
-// giving the to/from url to map. For example, 'a=b,c=d' contains two mappings,
-// the first maps 'a' to 'b' and the second 'c' to 'd'.
-const char kURLMappings[] = "url-mappings";
-
-// Switches valid for the main process (i.e., that the user may pass in).
-const char* kSwitchArray[] = {kV,
- kArgsFor,
- // |kChildProcess| not for user use.
- kContentHandlers,
- kDisableCache,
- kDontDeleteOnDownload,
- kEnableMultiprocess,
- kForceInProcess,
- kHelp,
- kMapOrigin,
- kOrigin,
- kPredictableAppFilenames,
- kTraceStartup,
- kURLMappings};
-
-const std::set<std::string> GetAllSwitches() {
- std::set<std::string> switch_set;
-
- for (size_t i = 0; i < arraysize(kSwitchArray); ++i)
- switch_set.insert(kSwitchArray[i]);
- return switch_set;
-}
-
} // namespace switches
« no previous file with comments | « mojo/shell/switches.h ('k') | mojo/shell/url_resolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698