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 // Hack so that feature switch can work with about_flags. See
50 // kEnableScriptsRequireAction.
51 const char kEnableMimeHandlerView
[] = "enable-mime-handler-view";
53 // Enables the mojo implementation of the serial API.
54 const char kEnableMojoSerialService
[] = "enable-mojo-serial-service";
56 // Enables extensions to hide bookmarks UI elements.
57 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
59 // Allows remote assistance connection to this computer using the Chrome Remote
60 // Desktop app on Chrome OS.
61 const char kEnableRemoteAssistance
[] = "enable-remote-assistance";
63 // Allows the ErrorConsole to collect runtime and manifest errors, and display
64 // them in the chrome:extensions page.
65 const char kErrorConsole
[] = "error-console";
67 // Whether to switch to extension action redesign mode (experimental).
68 const char kExtensionActionRedesign
[] = "extension-action-redesign";
70 // Marks a renderer as extension process.
71 const char kExtensionProcess
[] = "extension-process";
73 // Enables extensions running scripts on chrome:// URLs.
74 // Extensions still need to explicitly request access to chrome:// URLs in the
76 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
78 // Whether to force developer mode extensions highlighting.
79 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
81 // Path to a comma-separated list of apps to load at startup. The first app in
82 // the list will be launched.
83 const char kLoadApps
[] = "load-apps";
85 // Whether or not mime handler view guests are enabled.
86 const char kMimeHandlerView
[] = "mime-handler-view";
88 // Notify the user and require consent for extensions running scripts.
89 // Appending --scripts-require-action=1 has the same effect as
90 // --enable-scripts-require-action (see below).
91 const char kScriptsRequireAction
[] = "scripts-require-action";
92 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
93 // --enable-<feature> or --<feature>=1, but about_flags expects the command
94 // line argument to enable it (or a selection). Hack this in, so enabling it
95 // in about_flags enables the feature. Appending this flag has the same effect
96 // as --scripts-require-action=1.
97 const char kEnableScriptsRequireAction
[] = "enable-scripts-require-action";
99 // Makes component extensions appear in chrome://settings/extensions.
100 const char kShowComponentExtensionOptions
[] =
101 "show-component-extension-options";
103 // Adds the given extension ID to all the permission whitelists.
104 const char kWhitelistedExtensionID
[] = "whitelisted-extension-id";
106 // Pass launch source to platform apps.
107 const char kTraceAppSource
[] = "enable-trace-app-source";
109 } // namespace switches
111 } // namespace extensions