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 28 matching lines...) Expand all Loading... |
39 const char kExtensionProcess[] = "extension-process"; | 39 const char kExtensionProcess[] = "extension-process"; |
40 | 40 |
41 // Enables extensions running scripts on chrome:// URLs. | 41 // Enables extensions running scripts on chrome:// URLs. |
42 // Extensions still need to explicitly request access to chrome:// URLs in the | 42 // Extensions still need to explicitly request access to chrome:// URLs in the |
43 // manifest. | 43 // manifest. |
44 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; | 44 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; |
45 | 45 |
46 // Whether to force developer mode extensions highlighting. | 46 // Whether to force developer mode extensions highlighting. |
47 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; | 47 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; |
48 | 48 |
49 // Enables setting global commands through the Extensions Commands API. | |
50 const char kGlobalCommands[] = "global-commands"; | |
51 | |
52 // Notify the user and require consent for extensions running scripts. | 49 // Notify the user and require consent for extensions running scripts. |
53 // Appending --scripts-require-action=1 has the same effect as | 50 // Appending --scripts-require-action=1 has the same effect as |
54 // --enable-scripts-require-action (see below). | 51 // --enable-scripts-require-action (see below). |
55 const char kScriptsRequireAction[] = "scripts-require-action"; | 52 const char kScriptsRequireAction[] = "scripts-require-action"; |
56 // FeatureSwitch and about_flags don't play nice. Feature switch expects either | 53 // FeatureSwitch and about_flags don't play nice. Feature switch expects either |
57 // --enable-<feature> or --<feature>=1, but about_flags expects the command | 54 // --enable-<feature> or --<feature>=1, but about_flags expects the command |
58 // line argument to enable it (or a selection). Hack this in, so enabling it | 55 // line argument to enable it (or a selection). Hack this in, so enabling it |
59 // in about_flags enables the feature. Appending this flag has the same effect | 56 // in about_flags enables the feature. Appending this flag has the same effect |
60 // as --scripts-require-action=1. | 57 // as --scripts-require-action=1. |
61 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; | 58 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; |
62 | 59 |
63 // Makes component extensions appear in chrome://settings/extensions. | 60 // Makes component extensions appear in chrome://settings/extensions. |
64 const char kShowComponentExtensionOptions[] = | 61 const char kShowComponentExtensionOptions[] = |
65 "show-component-extension-options"; | 62 "show-component-extension-options"; |
66 | 63 |
67 // Adds the given extension ID to all the permission whitelists. | 64 // Adds the given extension ID to all the permission whitelists. |
68 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 65 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
69 | 66 |
70 } // namespace switches | 67 } // namespace switches |
71 | 68 |
72 } // namespace extensions | 69 } // namespace extensions |
OLD | NEW |