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
3 // found in the LICENSE file.
5 #include "extensions/common/switches.h"
11 // Allows non-https URL for background_page for hosted apps.
12 const char kAllowHTTPBackgroundPage
[] = "allow-http-background-page";
14 // Allows the browser to load extensions that lack a modern manifest when that
15 // would otherwise be forbidden.
16 const char kAllowLegacyExtensionManifests
[] =
17 "allow-legacy-extension-manifests";
19 // Enables extension options to be embedded in chrome://extensions rather than
21 const char kEmbeddedExtensionOptions
[] = "embedded-extension-options";
23 // Show apps windows after the first paint. Windows will be shown significantly
24 // later for heavy apps loading resources synchronously but it will be
25 // insignificant for apps that load most of their resources asynchronously.
26 const char kEnableAppsShowOnFirstPaint
[] = "enable-apps-show-on-first-paint";
28 // Enables the <window-controls> tag in platform apps.
29 const char kEnableAppWindowControls
[] = "enable-app-window-controls";
31 // Hack so that feature switch can work with about_flags. See
32 // kEnableScriptsRequireAction.
33 const char kEnableEmbeddedExtensionOptions
[] =
34 "enable-embedded-extension-options";
36 // Enables extension APIs that are in development.
37 const char kEnableExperimentalExtensionApis
[] =
38 "enable-experimental-extension-apis";
40 // Hack so that feature switch can work with about_flags. See
41 // kEnableScriptsRequireAction.
42 const char kEnableExtensionActionRedesign
[] =
43 "enable-extension-action-redesign";
45 // Enables the App Info dialog to be launched from the chrome://extensions page.
46 const char kEnableExtensionInfoDialog
[] = "enable-extension-info-dialog";
48 // Hack so that feature switch can work with about_flags. See
49 // kEnableScriptsRequireAction.
50 const char kEnableMimeHandlerView
[] = "enable-mime-handler-view";
52 // Enables extensions to hide bookmarks UI elements.
53 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
55 // Allows remote assistance connection to this computer using the Chrome Remote
56 // Desktop app on Chrome OS.
57 const char kEnableRemoteAssistance
[] = "enable-remote-assistance";
59 // Allows the ErrorConsole to collect runtime and manifest errors, and display
60 // them in the chrome:extensions page.
61 const char kErrorConsole
[] = "error-console";
63 // Whether to switch to extension action redesign mode (experimental).
64 const char kExtensionActionRedesign
[] = "extension-action-redesign";
66 // Marks a renderer as extension process.
67 const char kExtensionProcess
[] = "extension-process";
69 // Enables extensions running scripts on chrome:// URLs.
70 // Extensions still need to explicitly request access to chrome:// URLs in the
72 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
74 // Whether to force developer mode extensions highlighting.
75 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
77 // Whether or not mime handler view guests are enabled.
78 const char kMimeHandlerView
[] = "mime-handler-view";
80 // Notify the user and require consent for extensions running scripts.
81 // Appending --scripts-require-action=1 has the same effect as
82 // --enable-scripts-require-action (see below).
83 const char kScriptsRequireAction
[] = "scripts-require-action";
84 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
85 // --enable-<feature> or --<feature>=1, but about_flags expects the command
86 // line argument to enable it (or a selection). Hack this in, so enabling it
87 // in about_flags enables the feature. Appending this flag has the same effect
88 // as --scripts-require-action=1.
89 const char kEnableScriptsRequireAction
[] = "enable-scripts-require-action";
91 // Makes component extensions appear in chrome://settings/extensions.
92 const char kShowComponentExtensionOptions
[] =
93 "show-component-extension-options";
95 // Adds the given extension ID to all the permission whitelists.
96 const char kWhitelistedExtensionID
[] = "whitelisted-extension-id";
98 } // namespace switches
100 } // namespace extensions