Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 19678004: Move UserScript and Extension switches to top-level extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 20 matching lines...) Expand all
31 // On ChromeOS, file:// access is disabled except for certain whitelisted 31 // On ChromeOS, file:// access is disabled except for certain whitelisted
32 // directories. This switch re-enables file:// for testing. 32 // directories. This switch re-enables file:// for testing.
33 const char kAllowFileAccess[] = "allow-file-access"; 33 const char kAllowFileAccess[] = "allow-file-access";
34 34
35 // Allows non-https URL for background_page for hosted apps. 35 // Allows non-https URL for background_page for hosted apps.
36 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; 36 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page";
37 37
38 // Allow non-secure origins to use the screen capture API. 38 // Allow non-secure origins to use the screen capture API.
39 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture"; 39 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture";
40 40
41 // Allows the browser to load extensions that lack a modern manifest when that
42 // would otherwise be forbidden.
43 const char kAllowLegacyExtensionManifests[] =
44 "allow-legacy-extension-manifests";
45
46 // Specifies comma-separated list of extension ids or hosts to grant 41 // Specifies comma-separated list of extension ids or hosts to grant
47 // access to CRX file system APIs. 42 // access to CRX file system APIs.
48 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api"; 43 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api";
49 44
50 // Specifies comma-separated list of extension ids or hosts to grant 45 // Specifies comma-separated list of extension ids or hosts to grant
51 // access to file handle APIs. 46 // access to file handle APIs.
52 const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api"; 47 const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api";
53 48
54 // Specifies comma-separated list of extension ids or hosts to grant 49 // Specifies comma-separated list of extension ids or hosts to grant
55 // access to TCP/UDP socket APIs. 50 // access to TCP/UDP socket APIs.
56 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api"; 51 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api";
57 52
58 // Don't block outdated plugins. 53 // Don't block outdated plugins.
59 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins"; 54 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
60 55
61 // By default, an https page cannot run JavaScript, CSS or plug-ins from http 56 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
62 // URLs. This provides an override to get the old insecure behavior. 57 // URLs. This provides an override to get the old insecure behavior.
63 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; 58 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
64 59
65 // Allows injecting extensions and user scripts on the extensions gallery
66 // site. Normally prevented for security reasons, but can be useful for
67 // automation testing of the gallery.
68 const char kAllowScriptingGallery[] = "allow-scripting-gallery";
69
70 // Prevents Chrome from requiring authorization to run certain widely installed 60 // Prevents Chrome from requiring authorization to run certain widely installed
71 // but less commonly used plug-ins. 61 // but less commonly used plug-ins.
72 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins"; 62 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
73 63
74 // Specifies that the extension-app with the specified id should be launched 64 // Specifies that the extension-app with the specified id should be launched
75 // according to its configuration. 65 // according to its configuration.
76 const char kAppId[] = "app-id"; 66 const char kAppId[] = "app-id";
77 67
78 // Specifies that the associated value should be launched in "application" 68 // Specifies that the associated value should be launched in "application"
79 // mode. 69 // mode.
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // Enables logging for extension activity. 537 // Enables logging for extension activity.
548 const char kEnableExtensionActivityLogging[] = 538 const char kEnableExtensionActivityLogging[] =
549 "enable-extension-activity-logging"; 539 "enable-extension-activity-logging";
550 540
551 const char kEnableExtensionActivityLogTesting[] = 541 const char kEnableExtensionActivityLogTesting[] =
552 "enable-extension-activity-log-testing"; 542 "enable-extension-activity-log-testing";
553 543
554 // Enables or disables showing extensions in the action box. 544 // Enables or disables showing extensions in the action box.
555 const char kExtensionsInActionBox[] = "extensions-in-action-box"; 545 const char kExtensionsInActionBox[] = "extensions-in-action-box";
556 546
557 // Enables or disables running extensions on chrome:// URLs.
558 // Extensions still need to explicitly request access to chrome:// URLs in the
559 // manifest.
560 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls";
561
562 // Enable the fast unload controller, which speeds up tab/window close by 547 // Enable the fast unload controller, which speeds up tab/window close by
563 // running a tab's onunload js handler independently of the GUI - 548 // running a tab's onunload js handler independently of the GUI -
564 // crbug.com/142458 . 549 // crbug.com/142458 .
565 const char kEnableFastUnload[] = "enable-fast-unload"; 550 const char kEnableFastUnload[] = "enable-fast-unload";
566 551
567 // By default, cookies are not allowed on file://. They are needed for testing, 552 // By default, cookies are not allowed on file://. They are needed for testing,
568 // for example page cycler and layout tests. See bug 1157243. 553 // for example page cycler and layout tests. See bug 1157243.
569 const char kEnableFileCookies[] = "enable-file-cookies"; 554 const char kEnableFileCookies[] = "enable-file-cookies";
570 555
571 // Enables Google Now integration. 556 // Enables Google Now integration.
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 1199
1215 // Causes the process to run as a service process. 1200 // Causes the process to run as a service process.
1216 const char kServiceProcess[] = "service"; 1201 const char kServiceProcess[] = "service";
1217 1202
1218 // Sets a token in the token service, for testing. 1203 // Sets a token in the token service, for testing.
1219 const char kSetToken[] = "set-token"; 1204 const char kSetToken[] = "set-token";
1220 1205
1221 // If true the app list will be shown. 1206 // If true the app list will be shown.
1222 const char kShowAppList[] = "show-app-list"; 1207 const char kShowAppList[] = "show-app-list";
1223 1208
1224 // Makes component extensions appear in chrome://settings/extensions.
1225 const char kShowComponentExtensionOptions[] =
1226 "show-component-extension-options";
1227
1228 // See kHideIcons. 1209 // See kHideIcons.
1229 const char kShowIcons[] = "show-icons"; 1210 const char kShowIcons[] = "show-icons";
1230 1211
1231 // If true the alignment of the launcher can be changed. 1212 // If true the alignment of the launcher can be changed.
1232 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu"; 1213 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu";
1233 1214
1234 // Marks a renderer as the signin process. 1215 // Marks a renderer as the signin process.
1235 const char kSigninProcess[] = "signin-process"; 1216 const char kSigninProcess[] = "signin-process";
1236 1217
1237 // Does not show an infobar when an extension attaches to a page using 1218 // Does not show an infobar when an extension attaches to a page using
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 1553
1573 // ----------------------------------------------------------------------------- 1554 // -----------------------------------------------------------------------------
1574 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1555 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1575 // 1556 //
1576 // You were going to just dump your switches here, weren't you? Instead, please 1557 // You were going to just dump your switches here, weren't you? Instead, please
1577 // put them in alphabetical order above, or in order inside the appropriate 1558 // put them in alphabetical order above, or in order inside the appropriate
1578 // ifdef at the bottom. The order should match the header. 1559 // ifdef at the bottom. The order should match the header.
1579 // ----------------------------------------------------------------------------- 1560 // -----------------------------------------------------------------------------
1580 1561
1581 } // namespace switches 1562 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698