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

Side by Side Diff: extensions/common/switches.cc

Issue 47923018: Move FeatureSwitch to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « extensions/common/switches.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 // Allows the browser to load extensions that lack a modern manifest when that 11 // Allows the browser to load extensions that lack a modern manifest when that
12 // would otherwise be forbidden. 12 // would otherwise be forbidden.
13 const char kAllowLegacyExtensionManifests[] = 13 const char kAllowLegacyExtensionManifests[] =
14 "allow-legacy-extension-manifests"; 14 "allow-legacy-extension-manifests";
15 15
16 // Allows injecting extensions and user scripts on the extensions gallery 16 // Allows injecting extensions and user scripts on the extensions gallery
17 // site. Normally prevented for security reasons, but can be useful for 17 // site. Normally prevented for security reasons, but can be useful for
18 // automation testing of the gallery. 18 // automation testing of the gallery.
19 const char kAllowScriptingGallery[] = "allow-scripting-gallery"; 19 const char kAllowScriptingGallery[] = "allow-scripting-gallery";
20
21 // Enables extensions to be easily installed from sites other than the web
22 // store. Without this flag, they can still be installed, but must be manually
23 // dragged onto chrome://extensions/.
24 const char kEasyOffStoreExtensionInstall[] = "easy-off-store-extension-install";
20 25
21 // Enables extension APIs that are in development. 26 // Enables extension APIs that are in development.
22 const char kEnableExperimentalExtensionApis[] = 27 const char kEnableExperimentalExtensionApis[] =
23 "enable-experimental-extension-apis"; 28 "enable-experimental-extension-apis";
24 29
25 // Allows the ErrorConsole to collect runtime and manifest errors, and display 30 // Allows the ErrorConsole to collect runtime and manifest errors, and display
26 // them in the chrome:extensions page. 31 // them in the chrome:extensions page.
27 const char kErrorConsole[] = "error-console"; 32 const char kErrorConsole[] = "error-console";
28 33
29 // The time in seconds that an extension event page can be idle before it 34 // The time in seconds that an extension event page can be idle before it
30 // is shut down. 35 // is shut down.
31 const char kEventPageIdleTime[] = "event-page-idle-time"; 36 const char kEventPageIdleTime[] = "event-page-idle-time";
32 37
33 // The time in seconds that an extension event page has between being notified 38 // The time in seconds that an extension event page has between being notified
34 // of its impending unload and that unload happening. 39 // of its impending unload and that unload happening.
35 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; 40 const char kEventPageSuspendingTime[] = "event-page-unloading-time";
36 41
37 // Enables extensions running scripts on chrome:// URLs. 42 // Enables extensions running scripts on chrome:// URLs.
38 // Extensions still need to explicitly request access to chrome:// URLs in the 43 // Extensions still need to explicitly request access to chrome:// URLs in the
39 // manifest. 44 // manifest.
40 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; 45 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls";
46
47 // Enables setting global commands through the Extensions Commands API.
48 const char kGlobalCommands[] = "global-commands";
49
50 // Should we prompt the user before allowing external extensions to install?
51 // Default is yes.
52 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions";
53
54 // Enables or disables extension scripts badges in the location bar.
55 const char kScriptBadges[] = "script-badges";
56
57 // Enable or diable the "script bubble" icon in the URL bar that tells you how
58 // many extensions are running scripts on a page.
59 const char kScriptBubble[] = "script-bubble";
41 60
42 // Makes component extensions appear in chrome://settings/extensions. 61 // Makes component extensions appear in chrome://settings/extensions.
43 const char kShowComponentExtensionOptions[] = 62 const char kShowComponentExtensionOptions[] =
44 "show-component-extension-options"; 63 "show-component-extension-options";
45 64
46 } // namespace switches 65 } // namespace switches
47 66
48 } // namespace extensions 67 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/switches.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698