| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // Disables background mode (background apps will not keep chrome running in | 264 // Disables background mode (background apps will not keep chrome running in |
| 265 // the background). | 265 // the background). |
| 266 const char kDisableBackgroundMode[] = "disable-background-mode"; | 266 const char kDisableBackgroundMode[] = "disable-background-mode"; |
| 267 | 267 |
| 268 // Disable several subsystems which run network requests in the background. | 268 // Disable several subsystems which run network requests in the background. |
| 269 // This is for use when doing network performance testing to avoid noise in the | 269 // This is for use when doing network performance testing to avoid noise in the |
| 270 // measurements. | 270 // measurements. |
| 271 const char kDisableBackgroundNetworking[] = "disable-background-networking"; | 271 const char kDisableBackgroundNetworking[] = "disable-background-networking"; |
| 272 | 272 |
| 273 // Disables the bundled PPAPI version of Flash (if it's enabled by default). | 273 // Disables the bundled PPAPI version of Flash. |
| 274 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash"; | 274 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash"; |
| 275 | 275 |
| 276 // Disables the bookmark autocomplete provider (BookmarkProvider). | 276 // Disables the bookmark autocomplete provider (BookmarkProvider). |
| 277 const char kDisableBookmarkAutocompleteProvider[] = | 277 const char kDisableBookmarkAutocompleteProvider[] = |
| 278 "disable-bookmark-autocomplete-provider"; | 278 "disable-bookmark-autocomplete-provider"; |
| 279 | 279 |
| 280 // Disables the client-side phishing detection feature. Note that even if | 280 // Disables the client-side phishing detection feature. Note that even if |
| 281 // client-side phishing detection is enabled, it will only be active if the | 281 // client-side phishing detection is enabled, it will only be active if the |
| 282 // user has opted in to UMA stats and SafeBrowsing is enabled in the | 282 // user has opted in to UMA stats and SafeBrowsing is enabled in the |
| 283 // preferences. | 283 // preferences. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 "disable-extensions-http-throttling"; | 317 "disable-extensions-http-throttling"; |
| 318 | 318 |
| 319 // Disable mandatory enforcement of web_accessible_resources in extensions. | 319 // Disable mandatory enforcement of web_accessible_resources in extensions. |
| 320 const char kDisableExtensionsResourceWhitelist[] = | 320 const char kDisableExtensionsResourceWhitelist[] = |
| 321 "disable-extensions-resource-whitelist"; | 321 "disable-extensions-resource-whitelist"; |
| 322 | 322 |
| 323 // Disables improved SafeBrowsing download protection. | 323 // Disables improved SafeBrowsing download protection. |
| 324 const char kDisableImprovedDownloadProtection[] = | 324 const char kDisableImprovedDownloadProtection[] = |
| 325 "disable-improved-download-protection"; | 325 "disable-improved-download-protection"; |
| 326 | 326 |
| 327 // Disable the internal Flash Player. | |
| 328 const char kDisableInternalFlash[] = "disable-internal-flash"; | |
| 329 | |
| 330 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging | 327 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging |
| 331 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file | 328 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file |
| 332 // bugs if something isn't working properly in the presence of IPv6. This flag | 329 // bugs if something isn't working properly in the presence of IPv6. This flag |
| 333 // can be overidden by the "enable-ipv6" flag. | 330 // can be overidden by the "enable-ipv6" flag. |
| 334 const char kDisableIPv6[] = "disable-ipv6"; | 331 const char kDisableIPv6[] = "disable-ipv6"; |
| 335 | 332 |
| 336 // Disables IP Pooling within the networks stack (SPDY only). When a connection | 333 // Disables IP Pooling within the networks stack (SPDY only). When a connection |
| 337 // is needed for a domain which shares an IP with an existing connection, | 334 // is needed for a domain which shares an IP with an existing connection, |
| 338 // attempt to use the existing connection. | 335 // attempt to use the existing connection. |
| 339 const char kDisableIPPooling[] = "disable-ip-pooling"; | 336 const char kDisableIPPooling[] = "disable-ip-pooling"; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; | 462 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; |
| 466 | 463 |
| 467 // Enables the pre- and auto-login features. When a user signs in to sync, the | 464 // Enables the pre- and auto-login features. When a user signs in to sync, the |
| 468 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a | 465 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a |
| 469 // GAIA login page, an info bar can help the user login. | 466 // GAIA login page, an info bar can help the user login. |
| 470 const char kEnableAutologin[] = "enable-autologin"; | 467 const char kEnableAutologin[] = "enable-autologin"; |
| 471 | 468 |
| 472 // Enables the benchmarking extensions. | 469 // Enables the benchmarking extensions. |
| 473 const char kEnableBenchmarking[] = "enable-benchmarking"; | 470 const char kEnableBenchmarking[] = "enable-benchmarking"; |
| 474 | 471 |
| 475 // Enables the bundled PPAPI version of Flash. | |
| 476 const char kEnableBundledPpapiFlash[] = "enable-bundled-ppapi-flash"; | |
| 477 | |
| 478 // This applies only when the process type is "service". Enables the Cloud | 472 // This applies only when the process type is "service". Enables the Cloud |
| 479 // Print Proxy component within the service process. | 473 // Print Proxy component within the service process. |
| 480 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; | 474 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; |
| 481 | 475 |
| 482 // Enables fetching the user's contacts from Google and showing them in the | 476 // Enables fetching the user's contacts from Google and showing them in the |
| 483 // Chrome OS apps list. | 477 // Chrome OS apps list. |
| 484 const char kEnableContacts[] = "enable-contacts"; | 478 const char kEnableContacts[] = "enable-contacts"; |
| 485 | 479 |
| 486 // Enables web developers to create apps for Chrome without using crx packages. | 480 // Enables web developers to create apps for Chrome without using crx packages. |
| 487 const char kEnableCrxlessWebApps[] = "enable-crxless-web-apps"; | 481 const char kEnableCrxlessWebApps[] = "enable-crxless-web-apps"; |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 | 1612 |
| 1619 // ----------------------------------------------------------------------------- | 1613 // ----------------------------------------------------------------------------- |
| 1620 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1614 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1621 // | 1615 // |
| 1622 // You were going to just dump your switches here, weren't you? Instead, please | 1616 // You were going to just dump your switches here, weren't you? Instead, please |
| 1623 // put them in alphabetical order above, or in order inside the appropriate | 1617 // put them in alphabetical order above, or in order inside the appropriate |
| 1624 // ifdef at the bottom. The order should match the header. | 1618 // ifdef at the bottom. The order should match the header. |
| 1625 // ----------------------------------------------------------------------------- | 1619 // ----------------------------------------------------------------------------- |
| 1626 | 1620 |
| 1627 } // namespace switches | 1621 } // namespace switches |
| OLD | NEW |