Chromium Code Reviews| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 689 | 689 |
| 690 // Marks a renderer as extension process. | 690 // Marks a renderer as extension process. |
| 691 const char kExtensionProcess[] = "extension-process"; | 691 const char kExtensionProcess[] = "extension-process"; |
| 692 | 692 |
| 693 // Frequency in seconds for Extensions auto-update. | 693 // Frequency in seconds for Extensions auto-update. |
| 694 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; | 694 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; |
| 695 | 695 |
| 696 // Should we use an external Autofill popup? Default is no. | 696 // Should we use an external Autofill popup? Default is no. |
| 697 const char kExternalAutofillPopup[] = "external-autofill-popup"; | 697 const char kExternalAutofillPopup[] = "external-autofill-popup"; |
| 698 | 698 |
| 699 // Should we prompt the user before allowing external extensions to install? | |
| 700 // Default is yes. | |
| 701 const char kExternalExtensionPrompt[] = "external-extension-prompt"; | |
|
Yoyo Zhou
2012/10/16 23:28:05
naming nit: I would like prompt-for-external-exten
Matt Perry
2012/10/17 00:02:44
Done.
| |
| 702 | |
| 699 // These two flags are added around the switches about:flags adds to the | 703 // These two flags are added around the switches about:flags adds to the |
| 700 // command line. This is useful to see which switches were added by about:flags | 704 // command line. This is useful to see which switches were added by about:flags |
| 701 // on about:version. They don't have any effect. | 705 // on about:version. They don't have any effect. |
| 702 const char kFlagSwitchesBegin[] = "flag-switches-begin"; | 706 const char kFlagSwitchesBegin[] = "flag-switches-begin"; |
| 703 const char kFlagSwitchesEnd[] = "flag-switches-end"; | 707 const char kFlagSwitchesEnd[] = "flag-switches-end"; |
| 704 | 708 |
| 705 // Alternative feedback server to use when submitting user feedback | 709 // Alternative feedback server to use when submitting user feedback |
| 706 const char kFeedbackServer[] = "feedback-server"; | 710 const char kFeedbackServer[] = "feedback-server"; |
| 707 | 711 |
| 708 // The file descriptor limit is set to the value of this switch, subject to the | 712 // The file descriptor limit is set to the value of this switch, subject to the |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1603 return true; | 1607 return true; |
| 1604 #elif defined(OS_WIN) | 1608 #elif defined(OS_WIN) |
| 1605 return true; | 1609 return true; |
| 1606 #else | 1610 #else |
| 1607 return CommandLine::ForCurrentProcess()->HasSwitch( | 1611 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 1608 switches::kEnableFramelessConstrainedDialogs); | 1612 switches::kEnableFramelessConstrainedDialogs); |
| 1609 #endif | 1613 #endif |
| 1610 } | 1614 } |
| 1611 | 1615 |
| 1612 } // namespace chrome | 1616 } // namespace chrome |
| OLD | NEW |