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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // version cannot be loaded, Chrome will exit. | 169 // version cannot be loaded, Chrome will exit. |
170 const char kChromeVersion[] = "chrome-version"; | 170 const char kChromeVersion[] = "chrome-version"; |
171 | 171 |
172 // Comma-separated list of SSL cipher suites to disable. | 172 // Comma-separated list of SSL cipher suites to disable. |
173 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist"; | 173 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist"; |
174 | 174 |
175 // Clears the token service before using it. This allows simulating the | 175 // Clears the token service before using it. This allows simulating the |
176 // expiration of credentials during testing. | 176 // expiration of credentials during testing. |
177 const char kClearTokenService[] = "clear-token-service"; | 177 const char kClearTokenService[] = "clear-token-service"; |
178 | 178 |
179 // The maximum amount of delay in ms between receiving a cloud policy | |
180 // invalidation and fetching the policy. A random delay up to this value is used | |
181 // to prevent Chrome clients from overwhelming the cloud policy server when a | |
182 // policy which affects many users is changed. | |
183 const char kCloudPolicyInvalidationDelay[] = "cloud-policy-invalidation-delay"; | |
184 | |
185 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished | 179 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished |
186 // displaying the print dialog. | 180 // displaying the print dialog. |
187 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file"; | 181 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file"; |
188 | 182 |
189 // Tells chrome to display the cloud print dialog and upload the specified file | 183 // Tells chrome to display the cloud print dialog and upload the specified file |
190 // for printing. | 184 // for printing. |
191 const char kCloudPrintFile[] = "cloud-print-file"; | 185 const char kCloudPrintFile[] = "cloud-print-file"; |
192 | 186 |
193 // Specifies the mime type to be used when uploading data from the file | 187 // Specifies the mime type to be used when uploading data from the file |
194 // referenced by cloud-print-file. Defaults to "application/pdf" if | 188 // referenced by cloud-print-file. Defaults to "application/pdf" if |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 const char kDisableBookmarkAutocompleteProvider[] = | 304 const char kDisableBookmarkAutocompleteProvider[] = |
311 "disable-bookmark-autocomplete-provider"; | 305 "disable-bookmark-autocomplete-provider"; |
312 | 306 |
313 // Disables the client-side phishing detection feature. Note that even if | 307 // Disables the client-side phishing detection feature. Note that even if |
314 // client-side phishing detection is enabled, it will only be active if the | 308 // client-side phishing detection is enabled, it will only be active if the |
315 // user has opted in to UMA stats and SafeBrowsing is enabled in the | 309 // user has opted in to UMA stats and SafeBrowsing is enabled in the |
316 // preferences. | 310 // preferences. |
317 const char kDisableClientSidePhishingDetection[] = | 311 const char kDisableClientSidePhishingDetection[] = |
318 "disable-client-side-phishing-detection"; | 312 "disable-client-side-phishing-detection"; |
319 | 313 |
320 // Disables pushing cloud policy to Chrome using an invalidation service. | |
321 const char kDisableCloudPolicyPush[] = "disable-cloud-policy-push"; | |
322 | |
323 // Disable default component extensions with background pages - useful for | 314 // Disable default component extensions with background pages - useful for |
324 // performance tests where these pages may interfere with perf results. | 315 // performance tests where these pages may interfere with perf results. |
325 const char kDisableComponentExtensionsWithBackgroundPages[] = | 316 const char kDisableComponentExtensionsWithBackgroundPages[] = |
326 "disable-component-extensions-with-background-pages"; | 317 "disable-component-extensions-with-background-pages"; |
327 | 318 |
328 const char kDisableComponentUpdate[] = "disable-component-update"; | 319 const char kDisableComponentUpdate[] = "disable-component-update"; |
329 | 320 |
330 // Disables establishing certificate revocation information by downloading a | 321 // Disables establishing certificate revocation information by downloading a |
331 // set of CRLs rather than performing on-line checks. | 322 // set of CRLs rather than performing on-line checks. |
332 const char kDisableCRLSets[] = "disable-crl-sets"; | 323 const char kDisableCRLSets[] = "disable-crl-sets"; |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 // See http://crbug.com/31395. | 956 // See http://crbug.com/31395. |
966 const char kKioskModePrinting[] = "kiosk-printing"; | 957 const char kKioskModePrinting[] = "kiosk-printing"; |
967 | 958 |
968 // Causes Chrome to attempt to get metadata from the webstore for the | 959 // Causes Chrome to attempt to get metadata from the webstore for the |
969 // given item, and then prompt the user to download and install it. | 960 // given item, and then prompt the user to download and install it. |
970 const char kLimitedInstallFromWebstore[] = "limited-install-from-webstore"; | 961 const char kLimitedInstallFromWebstore[] = "limited-install-from-webstore"; |
971 | 962 |
972 // Comma-separated list of directories with component extensions to load. | 963 // Comma-separated list of directories with component extensions to load. |
973 const char kLoadComponentExtension[] = "load-component-extension"; | 964 const char kLoadComponentExtension[] = "load-component-extension"; |
974 | 965 |
975 // If present, disables the loading and application of cloud policy for | |
976 // signed-in users. | |
977 const char kDisableCloudPolicyOnSignin[] = "disable-cloud-policy-on-signin"; | |
978 | |
979 // Loads an extension from the specified directory. | 966 // Loads an extension from the specified directory. |
980 const char kLoadExtension[] = "load-extension"; | 967 const char kLoadExtension[] = "load-extension"; |
981 | 968 |
982 // Makes Chrome default browser | 969 // Makes Chrome default browser |
983 const char kMakeDefaultBrowser[] = "make-default-browser"; | 970 const char kMakeDefaultBrowser[] = "make-default-browser"; |
984 | 971 |
985 // Used to authenticate requests to the Sync service for managed users. Setting | 972 // Used to authenticate requests to the Sync service for managed users. Setting |
986 // this switch also causes Sync to be set up for a managed user. | 973 // this switch also causes Sync to be set up for a managed user. |
987 const char kManagedUserSyncToken[] = "managed-user-sync-token"; | 974 const char kManagedUserSyncToken[] = "managed-user-sync-token"; |
988 | 975 |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; | 1514 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; |
1528 | 1515 |
1529 #if defined(ENABLE_PLUGIN_INSTALLATION) | 1516 #if defined(ENABLE_PLUGIN_INSTALLATION) |
1530 // Specifies a custom URL for fetching plug-ins metadata. Used for testing. | 1517 // Specifies a custom URL for fetching plug-ins metadata. Used for testing. |
1531 const char kPluginsMetadataServerURL[] = "plugins-metadata-server-url"; | 1518 const char kPluginsMetadataServerURL[] = "plugins-metadata-server-url"; |
1532 #endif | 1519 #endif |
1533 | 1520 |
1534 #if defined(OS_ANDROID) || defined(OS_IOS) | 1521 #if defined(OS_ANDROID) || defined(OS_IOS) |
1535 // Enable SPDY proxy. | 1522 // Enable SPDY proxy. |
1536 const char kEnableSpdyProxyAuth[] = "enable-spdy-proxy-auth"; | 1523 const char kEnableSpdyProxyAuth[] = "enable-spdy-proxy-auth"; |
1537 | |
1538 // Registers for cloud policy using the BROWSER client type instead of the | |
1539 // ANDROID_BROWSER or IOS_BROWSER types. | |
1540 // This allows skipping the server whitelist. | |
1541 // TODO(joaodasilva): remove this. http://crbug.com/248527 | |
1542 const char kFakeCloudPolicyType[] = "fake-cloud-policy-type"; | |
1543 | |
1544 #endif // defined(OS_ANDROID) || defined(OS_IOS) | 1524 #endif // defined(OS_ANDROID) || defined(OS_IOS) |
1545 | 1525 |
1546 #if defined(OS_ANDROID) | 1526 #if defined(OS_ANDROID) |
1547 // Makes the "Add to Homescreen" shortcut invisible. | 1527 // Makes the "Add to Homescreen" shortcut invisible. |
1548 const char kDisableAddToHomescreen[] = "disable-add-to-homescreen"; | 1528 const char kDisableAddToHomescreen[] = "disable-add-to-homescreen"; |
1549 | 1529 |
1550 // Disables the new NTP. | 1530 // Disables the new NTP. |
1551 const char kDisableNewNTP[] = "disable-new-ntp"; | 1531 const char kDisableNewNTP[] = "disable-new-ntp"; |
1552 | 1532 |
1553 // Enable the accessibility tab switcher. | 1533 // Enable the accessibility tab switcher. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 | 1654 |
1675 // ----------------------------------------------------------------------------- | 1655 // ----------------------------------------------------------------------------- |
1676 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1656 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1677 // | 1657 // |
1678 // You were going to just dump your switches here, weren't you? Instead, please | 1658 // You were going to just dump your switches here, weren't you? Instead, please |
1679 // put them in alphabetical order above, or in order inside the appropriate | 1659 // put them in alphabetical order above, or in order inside the appropriate |
1680 // ifdef at the bottom. The order should match the header. | 1660 // ifdef at the bottom. The order should match the header. |
1681 // ----------------------------------------------------------------------------- | 1661 // ----------------------------------------------------------------------------- |
1682 | 1662 |
1683 } // namespace switches | 1663 } // namespace switches |
OLD | NEW |