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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 451 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
452 | 452 |
453 // Enables the experimental asynchronous DNS client. | 453 // Enables the experimental asynchronous DNS client. |
454 const char kEnableAsyncDns[] = "enable-async-dns"; | 454 const char kEnableAsyncDns[] = "enable-async-dns"; |
455 | 455 |
456 // Enables the inclusion of non-standard ports when generating the Kerberos SPN | 456 // Enables the inclusion of non-standard ports when generating the Kerberos SPN |
457 // in response to a Negotiate challenge. See | 457 // in response to a Negotiate challenge. See |
458 // HttpAuthHandlerNegotiate::CreateSPN for more background. | 458 // HttpAuthHandlerNegotiate::CreateSPN for more background. |
459 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; | 459 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; |
460 | 460 |
461 // With this flag set, Chrome will occasionally prompt the user to volunteer | |
462 // Autofill usage data beyond what is collected by default. This is data that | |
463 // we expect to be helpful for debugging, but that we do not want to send up | |
464 // automatically due to privacy concerns. | |
465 const char kEnableAutofillFeedback[] = "enable-autofill-feedback"; | |
466 | |
467 // Enables the pre- and auto-login features. When a user signs in to sync, the | 461 // 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 | 462 // 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. | 463 // GAIA login page, an info bar can help the user login. |
470 const char kEnableAutologin[] = "enable-autologin"; | 464 const char kEnableAutologin[] = "enable-autologin"; |
471 | 465 |
472 // Enables the benchmarking extensions. | 466 // Enables the benchmarking extensions. |
473 const char kEnableBenchmarking[] = "enable-benchmarking"; | 467 const char kEnableBenchmarking[] = "enable-benchmarking"; |
474 | 468 |
475 // Enables the bundled PPAPI version of Flash. | 469 // Enables the bundled PPAPI version of Flash. |
476 const char kEnableBundledPpapiFlash[] = "enable-bundled-ppapi-flash"; | 470 const char kEnableBundledPpapiFlash[] = "enable-bundled-ppapi-flash"; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 578 |
585 // Enables the Chrome IPC-based Proxy for NaCl. | 579 // Enables the Chrome IPC-based Proxy for NaCl. |
586 const char kEnableNaClIPCProxy[] = "enable-nacl-ipc-proxy"; | 580 const char kEnableNaClIPCProxy[] = "enable-nacl-ipc-proxy"; |
587 | 581 |
588 // Enables hardware exception handling via debugger process. | 582 // Enables hardware exception handling via debugger process. |
589 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; | 583 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling"; |
590 | 584 |
591 // Enables the native messaging extensions API. | 585 // Enables the native messaging extensions API. |
592 const char kEnableNativeMessaging[] = "enable-native-messaging"; | 586 const char kEnableNativeMessaging[] = "enable-native-messaging"; |
593 | 587 |
| 588 // Enables the new Autofill UI, which is part of the browser process rather than |
| 589 // part of the renderer process. http://crbug.com/51644 |
| 590 const char kEnableNewAutofillUi[] = "enable-new-autofill-ui"; |
| 591 |
| 592 // Enables new Autofill heuristics, such as adding support for new field types. |
| 593 const char kEnableNewAutofillHeuristics[] = "enable-new-autofill-heuristics"; |
| 594 |
594 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. | 595 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY. |
595 const char kEnableNpn[] = "enable-npn"; | 596 const char kEnableNpn[] = "enable-npn"; |
596 | 597 |
597 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. | 598 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used. |
598 // HTTP is still used for all requests. | 599 // HTTP is still used for all requests. |
599 const char kEnableNpnHttpOnly[] = "enable-npn-http"; | 600 const char kEnableNpnHttpOnly[] = "enable-npn-http"; |
600 | 601 |
601 // Enables panels (always on-top docked pop-up windows). | 602 // Enables panels (always on-top docked pop-up windows). |
602 const char kEnablePanels[] = "enable-panels"; | 603 const char kEnablePanels[] = "enable-panels"; |
603 | 604 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 // The time in seconds that an extension event page has between being notified | 674 // The time in seconds that an extension event page has between being notified |
674 // of its impending unload and that unload happening. | 675 // of its impending unload and that unload happening. |
675 const char kEventPageUnloadingTime[] = "event-page-unloading-time"; | 676 const char kEventPageUnloadingTime[] = "event-page-unloading-time"; |
676 | 677 |
677 // Marks a renderer as extension process. | 678 // Marks a renderer as extension process. |
678 const char kExtensionProcess[] = "extension-process"; | 679 const char kExtensionProcess[] = "extension-process"; |
679 | 680 |
680 // Frequency in seconds for Extensions auto-update. | 681 // Frequency in seconds for Extensions auto-update. |
681 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; | 682 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; |
682 | 683 |
683 // Should we use an external Autofill popup? Default is no. | |
684 const char kExternalAutofillPopup[] = "external-autofill-popup"; | |
685 | |
686 // These two flags are added around the switches about:flags adds to the | 684 // These two flags are added around the switches about:flags adds to the |
687 // command line. This is useful to see which switches were added by about:flags | 685 // command line. This is useful to see which switches were added by about:flags |
688 // on about:version. They don't have any effect. | 686 // on about:version. They don't have any effect. |
689 const char kFlagSwitchesBegin[] = "flag-switches-begin"; | 687 const char kFlagSwitchesBegin[] = "flag-switches-begin"; |
690 const char kFlagSwitchesEnd[] = "flag-switches-end"; | 688 const char kFlagSwitchesEnd[] = "flag-switches-end"; |
691 | 689 |
692 // Alternative feedback server to use when submitting user feedback | 690 // Alternative feedback server to use when submitting user feedback |
693 const char kFeedbackServer[] = "feedback-server"; | 691 const char kFeedbackServer[] = "feedback-server"; |
694 | 692 |
695 // The file descriptor limit is set to the value of this switch, subject to the | 693 // The file descriptor limit is set to the value of this switch, subject to the |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 return true; | 1584 return true; |
1587 #elif defined(OS_WIN) | 1585 #elif defined(OS_WIN) |
1588 return true; | 1586 return true; |
1589 #else | 1587 #else |
1590 return CommandLine::ForCurrentProcess()->HasSwitch( | 1588 return CommandLine::ForCurrentProcess()->HasSwitch( |
1591 switches::kEnableFramelessConstrainedDialogs); | 1589 switches::kEnableFramelessConstrainedDialogs); |
1592 #endif | 1590 #endif |
1593 } | 1591 } |
1594 | 1592 |
1595 } // namespace chrome | 1593 } // namespace chrome |
OLD | NEW |