| OLD | NEW |
| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 const char kEnableDeviceDiscoveryNotifications[] = | 596 const char kEnableDeviceDiscoveryNotifications[] = |
| 597 "enable-device-discovery-notifications"; | 597 "enable-device-discovery-notifications"; |
| 598 | 598 |
| 599 // Force-enables DNS probes on main frame DNS errors. (The user must still | 599 // Force-enables DNS probes on main frame DNS errors. (The user must still |
| 600 // opt in to "Use web service to resolve navigation errors".) | 600 // opt in to "Use web service to resolve navigation errors".) |
| 601 const char kEnableDnsProbes[] = "enable-dns-probes"; | 601 const char kEnableDnsProbes[] = "enable-dns-probes"; |
| 602 | 602 |
| 603 // Enables the DOM distiller. | 603 // Enables the DOM distiller. |
| 604 const char kEnableDomDistiller[] = "enable-dom-distiller"; | 604 const char kEnableDomDistiller[] = "enable-dom-distiller"; |
| 605 | 605 |
| 606 // Enables extensions to be easily installed from sites other than the web | |
| 607 // store. Without this flag, they can still be installed, but must be manually | |
| 608 // dragged onto chrome://extensions/. | |
| 609 const char kEasyOffStoreExtensionInstall[] = | |
| 610 "easy-off-store-extension-install"; | |
| 611 | |
| 612 // Enables experimentation with ephemeral apps, which are launched without | 606 // Enables experimentation with ephemeral apps, which are launched without |
| 613 // installing in Chrome. | 607 // installing in Chrome. |
| 614 const char kEnableEphemeralApps[] = "enable-ephemeral-apps"; | 608 const char kEnableEphemeralApps[] = "enable-ephemeral-apps"; |
| 615 | 609 |
| 616 // Enables logging for extension activity. | 610 // Enables logging for extension activity. |
| 617 const char kEnableExtensionActivityLogging[] = | 611 const char kEnableExtensionActivityLogging[] = |
| 618 "enable-extension-activity-logging"; | 612 "enable-extension-activity-logging"; |
| 619 | 613 |
| 620 const char kEnableExtensionActivityLogTesting[] = | 614 const char kEnableExtensionActivityLogTesting[] = |
| 621 "enable-extension-activity-log-testing"; | 615 "enable-extension-activity-log-testing"; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 // Forces additional Chrome Variation Ids that will be sent in | 859 // Forces additional Chrome Variation Ids that will be sent in |
| 866 // X-Chrome-Variations header, specified as a comma-separated list of numeric | 860 // X-Chrome-Variations header, specified as a comma-separated list of numeric |
| 867 // experiment ids. | 861 // experiment ids. |
| 868 const char kForceVariationIds[] = "force-variation-ids"; | 862 const char kForceVariationIds[] = "force-variation-ids"; |
| 869 | 863 |
| 870 // Tries to load cloud policy for every signed in user, regardless of whether | 864 // Tries to load cloud policy for every signed in user, regardless of whether |
| 871 // they are a dasher user or not. Used to allow any GAIA account to be used for | 865 // they are a dasher user or not. Used to allow any GAIA account to be used for |
| 872 // testing the cloud policy framework. | 866 // testing the cloud policy framework. |
| 873 const char kForceLoadCloudPolicy[] = "force-load-cloud-policy"; | 867 const char kForceLoadCloudPolicy[] = "force-load-cloud-policy"; |
| 874 | 868 |
| 875 // Enables setting global commands through the Extensions Commands API. | |
| 876 const char kGlobalCommands[] = "global-commands"; | |
| 877 | |
| 878 // Specifies an alternate URL to use for speaking to Google. Useful for testing. | 869 // Specifies an alternate URL to use for speaking to Google. Useful for testing. |
| 879 const char kGoogleBaseURL[] = "google-base-url"; | 870 const char kGoogleBaseURL[] = "google-base-url"; |
| 880 | 871 |
| 881 // Enables using GAIA information to populate profile name and icon. | 872 // Enables using GAIA information to populate profile name and icon. |
| 882 const char kGoogleProfileInfo[] = "google-profile-info"; | 873 const char kGoogleProfileInfo[] = "google-profile-info"; |
| 883 | 874 |
| 884 // Specifies an alternate URL to use for retrieving the search domain for | 875 // Specifies an alternate URL to use for retrieving the search domain for |
| 885 // Google. Useful for testing. | 876 // Google. Useful for testing. |
| 886 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url"; | 877 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url"; |
| 887 | 878 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1194 | 1185 |
| 1195 // Controls whether profile data is periodically flushed to a file. Normally | 1186 // Controls whether profile data is periodically flushed to a file. Normally |
| 1196 // the data gets written on exit but cases exist where chrome doesn't exit | 1187 // the data gets written on exit but cases exist where chrome doesn't exit |
| 1197 // cleanly (especially when using single-process). A time in seconds can be | 1188 // cleanly (especially when using single-process). A time in seconds can be |
| 1198 // specified. | 1189 // specified. |
| 1199 const char kProfilingFlush[] = "profiling-flush"; | 1190 const char kProfilingFlush[] = "profiling-flush"; |
| 1200 | 1191 |
| 1201 // Specifies a custom URL for fetching NTP promo data. | 1192 // Specifies a custom URL for fetching NTP promo data. |
| 1202 const char kPromoServerURL[] = "promo-server-url"; | 1193 const char kPromoServerURL[] = "promo-server-url"; |
| 1203 | 1194 |
| 1204 // Should we prompt the user before allowing external extensions to install? | |
| 1205 // Default is yes. | |
| 1206 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions"; | |
| 1207 | |
| 1208 // Forces proxy auto-detection. | 1195 // Forces proxy auto-detection. |
| 1209 const char kProxyAutoDetect[] = "proxy-auto-detect"; | 1196 const char kProxyAutoDetect[] = "proxy-auto-detect"; |
| 1210 | 1197 |
| 1211 // Specifies a list of hosts for whom we bypass proxy settings and use direct | 1198 // Specifies a list of hosts for whom we bypass proxy settings and use direct |
| 1212 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also | 1199 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also |
| 1213 // specified. This is a comma-separated list of bypass rules. See: | 1200 // specified. This is a comma-separated list of bypass rules. See: |
| 1214 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. | 1201 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. |
| 1215 const char kProxyBypassList[] = "proxy-bypass-list"; | 1202 const char kProxyBypassList[] = "proxy-bypass-list"; |
| 1216 | 1203 |
| 1217 // Uses the pac script at the given URL | 1204 // Uses the pac script at the given URL |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 const char kSbDisableExtensionBlacklist[] = | 1269 const char kSbDisableExtensionBlacklist[] = |
| 1283 "safebrowsing-disable-extension-blacklist"; | 1270 "safebrowsing-disable-extension-blacklist"; |
| 1284 | 1271 |
| 1285 // Disables safebrowsing feature that provides a side-effect free whitelist. | 1272 // Disables safebrowsing feature that provides a side-effect free whitelist. |
| 1286 const char kSbDisableSideEffectFreeWhitelist[] = | 1273 const char kSbDisableSideEffectFreeWhitelist[] = |
| 1287 "safebrowsing-disable-side-effect-free-whitelist"; | 1274 "safebrowsing-disable-side-effect-free-whitelist"; |
| 1288 | 1275 |
| 1289 // URL to send safebrowsing download feedback reports to. | 1276 // URL to send safebrowsing download feedback reports to. |
| 1290 const char kSbDownloadFeedbackURL[] = "safebrowsing-download-feedback-url"; | 1277 const char kSbDownloadFeedbackURL[] = "safebrowsing-download-feedback-url"; |
| 1291 | 1278 |
| 1292 // Enables or disables extension scripts badges in the location bar. | |
| 1293 const char kScriptBadges[] = "script-badges"; | |
| 1294 | |
| 1295 // Enable or diable the "script bubble" icon in the URL bar that tells you how | |
| 1296 // many extensions are running scripts on a page. | |
| 1297 const char kScriptBubble[] = "script-bubble"; | |
| 1298 | |
| 1299 // Causes the process to run as a service process. | 1279 // Causes the process to run as a service process. |
| 1300 const char kServiceProcess[] = "service"; | 1280 const char kServiceProcess[] = "service"; |
| 1301 | 1281 |
| 1302 // Sets a token in the token service, for testing. | 1282 // Sets a token in the token service, for testing. |
| 1303 const char kSetToken[] = "set-token"; | 1283 const char kSetToken[] = "set-token"; |
| 1304 | 1284 |
| 1305 // If true the app list will be shown. | 1285 // If true the app list will be shown. |
| 1306 const char kShowAppList[] = "show-app-list"; | 1286 const char kShowAppList[] = "show-app-list"; |
| 1307 | 1287 |
| 1308 // If true the app list will show the start page webui. | 1288 // If true the app list will show the start page webui. |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1654 | 1634 |
| 1655 // ----------------------------------------------------------------------------- | 1635 // ----------------------------------------------------------------------------- |
| 1656 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1636 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1657 // | 1637 // |
| 1658 // You were going to just dump your switches here, weren't you? Instead, please | 1638 // You were going to just dump your switches here, weren't you? Instead, please |
| 1659 // put them in alphabetical order above, or in order inside the appropriate | 1639 // put them in alphabetical order above, or in order inside the appropriate |
| 1660 // ifdef at the bottom. The order should match the header. | 1640 // ifdef at the bottom. The order should match the header. |
| 1661 // ----------------------------------------------------------------------------- | 1641 // ----------------------------------------------------------------------------- |
| 1662 | 1642 |
| 1663 } // namespace switches | 1643 } // namespace switches |
| OLD | NEW |