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

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 extra import 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
Index: mojo/shell/switches.h
diff --git a/mojo/shell/switches.h b/mojo/shell/switches.h
index 3381eeb1ee70b1b1cdb2d8833d21410a0b195af4..69b467352d4fef78049acf3c82f30c83eb5871c4 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_

Powered by Google App Engine
This is Rietveld 408576698