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 // Disables the App Info dialog from being launched from the chrome://extensions
20 // page (reverts to the old-style permissions dialog instead).
21 const char kDisableExtensionInfoDialog
[] = "disable-extension-info-dialog";
23 // Enables extension options to be embedded in chrome://extensions rather than
25 const char kEmbeddedExtensionOptions
[] = "embedded-extension-options";
27 // Enables the SurfaceWorker experiment.
28 const char kSurfaceWorker
[] = "surface-worker";
30 // Show apps windows after the first paint. Windows will be shown significantly
31 // later for heavy apps loading resources synchronously but it will be
32 // insignificant for apps that load most of their resources asynchronously.
33 const char kEnableAppsShowOnFirstPaint
[] = "enable-apps-show-on-first-paint";
35 // Enables the <window-controls> tag in platform apps.
36 const char kEnableAppWindowControls
[] = "enable-app-window-controls";
38 // Hack so that feature switch can work with about_flags. See
39 // kEnableScriptsRequireAction.
40 const char kEnableEmbeddedExtensionOptions
[] =
41 "enable-embedded-extension-options";
43 // Enables the experimental feature SurfaceWorker.
44 const char kEnableSurfaceWorker
[] = "enable-surface-worker";
46 // Enables extension APIs that are in development.
47 const char kEnableExperimentalExtensionApis
[] =
48 "enable-experimental-extension-apis";
50 // Hack so that feature switch can work with about_flags. See
51 // kEnableScriptsRequireAction.
52 const char kEnableExtensionActionRedesign
[] =
53 "enable-extension-action-redesign";
55 // Enables the mojo implementation of the serial API.
56 const char kEnableMojoSerialService
[] = "enable-mojo-serial-service";
58 // Enables extensions to hide bookmarks UI elements.
59 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
61 // Allows the ErrorConsole to collect runtime and manifest errors, and display
62 // them in the chrome:extensions page.
63 const char kErrorConsole
[] = "error-console";
65 // Whether to switch to extension action redesign mode (experimental).
66 const char kExtensionActionRedesign
[] = "extension-action-redesign";
68 // Marks a renderer as extension process.
69 const char kExtensionProcess
[] = "extension-process";
71 // Enables extensions running scripts on chrome:// URLs.
72 // Extensions still need to explicitly request access to chrome:// URLs in the
74 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
76 // Whether to force developer mode extensions highlighting.
77 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
79 // Path to a comma-separated list of apps to load at startup. The first app in
80 // the list will be launched.
81 const char kLoadApps
[] = "load-apps";
83 // Notify the user and require consent for extensions running scripts.
84 // Appending --scripts-require-action=1 has the same effect as
85 // --enable-scripts-require-action (see below).
86 const char kScriptsRequireAction
[] = "scripts-require-action";
87 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
88 // --enable-<feature> or --<feature>=1, but about_flags expects the command
89 // line argument to enable it (or a selection). Hack this in, so enabling it
90 // in about_flags enables the feature. Appending this flag has the same effect
91 // as --scripts-require-action=1.
92 const char kEnableScriptsRequireAction
[] = "enable-scripts-require-action";
94 // Makes component extensions appear in chrome://settings/extensions.
95 const char kShowComponentExtensionOptions
[] =
96 "show-component-extension-options";
98 // Adds the given extension ID to all the permission whitelists.
99 const char kWhitelistedExtensionID
[] = "whitelisted-extension-id";
101 // Pass launch source to platform apps.
102 const char kTraceAppSource
[] = "enable-trace-app-source";
104 } // namespace switches
106 } // namespace extensions