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 mojo implementation of the serial API.
46 const char kEnableMojoSerialService
[] = "enable-mojo-serial-service";
48 // Enables extensions to hide bookmarks UI elements.
49 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
51 // Allows the ErrorConsole to collect runtime and manifest errors, and display
52 // them in the chrome:extensions page.
53 const char kErrorConsole
[] = "error-console";
55 // Whether to switch to extension action redesign mode (experimental).
56 const char kExtensionActionRedesign
[] = "extension-action-redesign";
58 // Marks a renderer as extension process.
59 const char kExtensionProcess
[] = "extension-process";
61 // Enables extensions running scripts on chrome:// URLs.
62 // Extensions still need to explicitly request access to chrome:// URLs in the
64 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
66 // Whether to force developer mode extensions highlighting.
67 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
69 // Path to a comma-separated list of apps to load at startup. The first app in
70 // the list will be launched.
71 const char kLoadApps
[] = "load-apps";
73 // Notify the user and require consent for extensions running scripts.
74 // Appending --scripts-require-action=1 has the same effect as
75 // --enable-scripts-require-action (see below).
76 const char kScriptsRequireAction
[] = "scripts-require-action";
77 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
78 // --enable-<feature> or --<feature>=1, but about_flags expects the command
79 // line argument to enable it (or a selection). Hack this in, so enabling it
80 // in about_flags enables the feature. Appending this flag has the same effect
81 // as --scripts-require-action=1.
82 const char kEnableScriptsRequireAction
[] = "enable-scripts-require-action";
84 #if defined(CHROMIUM_BUILD)
85 // Should we prompt the user before allowing external extensions to install?
86 // This flag is available on Chromium for testing purposes.
87 const char kPromptForExternalExtensions
[] = "prompt-for-external-extensions";
90 // Makes component extensions appear in chrome://settings/extensions.
91 const char kShowComponentExtensionOptions
[] =
92 "show-component-extension-options";
94 // Adds the given extension ID to all the permission whitelists.
95 const char kWhitelistedExtensionID
[] = "whitelisted-extension-id";
97 // Pass launch source to platform apps.
98 const char kTraceAppSource
[] = "enable-trace-app-source";
100 // Enable package hash check: the .crx file sha256 hash sum should be equal to
101 // the one received from update manifest.
102 const char kEnableCrxHashCheck
[] = "enable-crx-hash-check";
104 } // namespace switches
106 } // namespace extensions