Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/switches.h" | 5 #include "extensions/common/switches.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 const char kExtensionProcess[] = "extension-process"; | 71 const char kExtensionProcess[] = "extension-process"; |
| 72 | 72 |
| 73 // Enables extensions running scripts on chrome:// URLs. | 73 // Enables extensions running scripts on chrome:// URLs. |
| 74 // Extensions still need to explicitly request access to chrome:// URLs in the | 74 // Extensions still need to explicitly request access to chrome:// URLs in the |
| 75 // manifest. | 75 // manifest. |
| 76 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; | 76 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; |
| 77 | 77 |
| 78 // Whether to force developer mode extensions highlighting. | 78 // Whether to force developer mode extensions highlighting. |
| 79 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; | 79 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; |
| 80 | 80 |
| 81 // Path to a apps to load at startup. | |
|
Daniel Erat
2014/11/14 22:43:32
nit: "Path to a comma-separated list of apps to lo
Zachary Kuznia
2014/11/14 22:54:48
Done.
| |
| 82 const char kLoadApp[] = "load-app"; | |
|
Daniel Erat
2014/11/14 22:43:32
kLoadApps / load-apps since it takes more than one
Zachary Kuznia
2014/11/14 22:54:48
Done.
| |
| 83 | |
| 81 // Whether or not mime handler view guests are enabled. | 84 // Whether or not mime handler view guests are enabled. |
| 82 const char kMimeHandlerView[] = "mime-handler-view"; | 85 const char kMimeHandlerView[] = "mime-handler-view"; |
| 83 | 86 |
| 84 // Notify the user and require consent for extensions running scripts. | 87 // Notify the user and require consent for extensions running scripts. |
| 85 // Appending --scripts-require-action=1 has the same effect as | 88 // Appending --scripts-require-action=1 has the same effect as |
| 86 // --enable-scripts-require-action (see below). | 89 // --enable-scripts-require-action (see below). |
| 87 const char kScriptsRequireAction[] = "scripts-require-action"; | 90 const char kScriptsRequireAction[] = "scripts-require-action"; |
| 88 // FeatureSwitch and about_flags don't play nice. Feature switch expects either | 91 // FeatureSwitch and about_flags don't play nice. Feature switch expects either |
| 89 // --enable-<feature> or --<feature>=1, but about_flags expects the command | 92 // --enable-<feature> or --<feature>=1, but about_flags expects the command |
| 90 // line argument to enable it (or a selection). Hack this in, so enabling it | 93 // line argument to enable it (or a selection). Hack this in, so enabling it |
| 91 // in about_flags enables the feature. Appending this flag has the same effect | 94 // in about_flags enables the feature. Appending this flag has the same effect |
| 92 // as --scripts-require-action=1. | 95 // as --scripts-require-action=1. |
| 93 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; | 96 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; |
| 94 | 97 |
| 95 // Makes component extensions appear in chrome://settings/extensions. | 98 // Makes component extensions appear in chrome://settings/extensions. |
| 96 const char kShowComponentExtensionOptions[] = | 99 const char kShowComponentExtensionOptions[] = |
| 97 "show-component-extension-options"; | 100 "show-component-extension-options"; |
| 98 | 101 |
| 99 // Adds the given extension ID to all the permission whitelists. | 102 // Adds the given extension ID to all the permission whitelists. |
| 100 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 103 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 101 | 104 |
| 102 // Pass launch source to platform apps. | 105 // Pass launch source to platform apps. |
| 103 const char kTraceAppSource[] = "enable-trace-app-source"; | 106 const char kTraceAppSource[] = "enable-trace-app-source"; |
| 104 | 107 |
| 105 } // namespace switches | 108 } // namespace switches |
| 106 | 109 |
| 107 } // namespace extensions | 110 } // namespace extensions |
| OLD | NEW |