Adding Peter Thatcher to the owners file.
[chromium-blink-merge.git] / extensions / common / switches.cc
blob51681cc2ce33e0306f07fe6016114203de0edaa3
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"
7 namespace extensions {
9 namespace switches {
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
20 // a new tab.
21 const char kEmbeddedExtensionOptions[] = "embedded-extension-options";
23 // Enables the SurfaceWorker experiment.
24 const char kSurfaceWorker[] = "surface-worker";
26 // Show apps windows after the first paint. Windows will be shown significantly
27 // later for heavy apps loading resources synchronously but it will be
28 // insignificant for apps that load most of their resources asynchronously.
29 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint";
31 // Enables the <window-controls> tag in platform apps.
32 const char kEnableAppWindowControls[] = "enable-app-window-controls";
34 // Hack so that feature switch can work with about_flags. See
35 // kEnableScriptsRequireAction.
36 const char kEnableEmbeddedExtensionOptions[] =
37 "enable-embedded-extension-options";
39 // Enables the experimental feature SurfaceWorker.
40 const char kEnableSurfaceWorker[] = "enable-surface-worker";
42 // Enables extension APIs that are in development.
43 const char kEnableExperimentalExtensionApis[] =
44 "enable-experimental-extension-apis";
46 // Hack so that feature switch can work with about_flags. See
47 // kEnableScriptsRequireAction.
48 const char kEnableExtensionActionRedesign[] =
49 "enable-extension-action-redesign";
51 // Enables the mojo implementation of the serial API.
52 const char kEnableMojoSerialService[] = "enable-mojo-serial-service";
54 // Enables extensions to hide bookmarks UI elements.
55 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui";
57 // Allows the ErrorConsole to collect runtime and manifest errors, and display
58 // them in the chrome:extensions page.
59 const char kErrorConsole[] = "error-console";
61 // Whether to switch to extension action redesign mode (experimental).
62 const char kExtensionActionRedesign[] = "extension-action-redesign";
64 // Marks a renderer as extension process.
65 const char kExtensionProcess[] = "extension-process";
67 // Enables extensions running scripts on chrome:// URLs.
68 // Extensions still need to explicitly request access to chrome:// URLs in the
69 // manifest.
70 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls";
72 // Whether to force developer mode extensions highlighting.
73 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting";
75 // Path to a comma-separated list of apps to load at startup. The first app in
76 // the list will be launched.
77 const char kLoadApps[] = "load-apps";
79 // Notify the user and require consent for extensions running scripts.
80 // Appending --scripts-require-action=1 has the same effect as
81 // --enable-scripts-require-action (see below).
82 const char kScriptsRequireAction[] = "scripts-require-action";
83 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
84 // --enable-<feature> or --<feature>=1, but about_flags expects the command
85 // line argument to enable it (or a selection). Hack this in, so enabling it
86 // in about_flags enables the feature. Appending this flag has the same effect
87 // as --scripts-require-action=1.
88 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action";
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