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

Unified Diff: mojo/shell/switches.h

Issue 731923002: Emit error if unknown switch is passed to mojo_shell (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove static Created 6 years, 1 month 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/desktop/mojo_main.cc ('k') | mojo/shell/switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/switches.h
diff --git a/mojo/shell/switches.h b/mojo/shell/switches.h
index 3381eeb1ee70b1b1cdb2d8833d21410a0b195af4..e5049262bb1fae845a959e743c6287a120da8b5d 100644
--- a/mojo/shell/switches.h
+++ b/mojo/shell/switches.h
@@ -5,6 +5,9 @@
#ifndef MOJO_SHELL_SWITCHES_H_
#define MOJO_SHELL_SWITCHES_H_
+#include <set>
+#include <string>
+
namespace switches {
// All switches in alphabetical order. The switches should be documented
@@ -21,6 +24,8 @@ extern const char kOrigin[];
extern const char kSpy[];
extern const char kURLMappings[];
+extern const std::set<std::string> GetAllSwitches();
+
} // namespace switches
#endif // MOJO_SHELL_SWITCHES_H_
« no previous file with comments | « mojo/shell/desktop/mojo_main.cc ('k') | mojo/shell/switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698