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