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 // Show apps windows after the first paint. Windows will be shown significantly
28 // later for heavy apps loading resources synchronously but it will be
29 // insignificant for apps that load most of their resources asynchronously.
30 const char kEnableAppsShowOnFirstPaint
[] = "enable-apps-show-on-first-paint";
32 // Enables the <window-controls> tag in platform apps.
33 const char kEnableAppWindowControls
[] = "enable-app-window-controls";
35 // Hack so that feature switch can work with about_flags. See
36 // kEnableScriptsRequireAction.
37 const char kEnableEmbeddedExtensionOptions
[] =
38 "enable-embedded-extension-options";
40 // Enables extension APIs that are in development.
41 const char kEnableExperimentalExtensionApis
[] =
42 "enable-experimental-extension-apis";
44 // Hack so that feature switch can work with about_flags. See
45 // kEnableScriptsRequireAction.
46 const char kEnableExtensionActionRedesign
[] =
47 "enable-extension-action-redesign";
49 // Enables the mojo implementation of the serial API.
50 const char kEnableMojoSerialService
[] = "enable-mojo-serial-service";
52 // Enables extensions to hide bookmarks UI elements.
53 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
55 // Allows the ErrorConsole to collect runtime and manifest errors, and display
56 // them in the chrome:extensions page.
57 const char kErrorConsole
[] = "error-console";
59 // Whether to switch to extension action redesign mode (experimental).
60 const char kExtensionActionRedesign
[] = "extension-action-redesign";
62 // Marks a renderer as extension process.
63 const char kExtensionProcess
[] = "extension-process";
65 // Enables extensions running scripts on chrome:// URLs.
66 // Extensions still need to explicitly request access to chrome:// URLs in the
68 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
70 // Whether to force developer mode extensions highlighting.
71 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
73 // Path to a comma-separated list of apps to load at startup. The first app in
74 // the list will be launched.
75 const char kLoadApps
[] = "load-apps";
77 // Notify the user and require consent for extensions running scripts.
78 // Appending --scripts-require-action=1 has the same effect as
79 // --enable-scripts-require-action (see below).
80 const char kScriptsRequireAction
[] = "scripts-require-action";
81 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
82 // --enable-<feature> or --<feature>=1, but about_flags expects the command
83 // line argument to enable it (or a selection). Hack this in, so enabling it
84 // in about_flags enables the feature. Appending this flag has the same effect
85 // as --scripts-require-action=1.
86 const char kEnableScriptsRequireAction
[] = "enable-scripts-require-action";
88 // Makes component extensions appear in chrome://settings/extensions.
89 const char kShowComponentExtensionOptions
[] =
90 "show-component-extension-options";
92 // Adds the given extension ID to all the permission whitelists.
93 const char kWhitelistedExtensionID
[] = "whitelisted-extension-id";
95 // Pass launch source to platform apps.
96 const char kTraceAppSource
[] = "enable-trace-app-source";
98 } // namespace switches
100 } // namespace extensions