| 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 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 | 1084 |
| 1085 // Controls whether profile data is periodically flushed to a file. Normally | 1085 // Controls whether profile data is periodically flushed to a file. Normally |
| 1086 // the data gets written on exit but cases exist where chrome doesn't exit | 1086 // the data gets written on exit but cases exist where chrome doesn't exit |
| 1087 // cleanly (especially when using single-process). A time in seconds can be | 1087 // cleanly (especially when using single-process). A time in seconds can be |
| 1088 // specified. | 1088 // specified. |
| 1089 const char kProfilingFlush[] = "profiling-flush"; | 1089 const char kProfilingFlush[] = "profiling-flush"; |
| 1090 | 1090 |
| 1091 // Specifies a custom URL for fetching NTP promo data. | 1091 // Specifies a custom URL for fetching NTP promo data. |
| 1092 const char kPromoServerURL[] = "promo-server-url"; | 1092 const char kPromoServerURL[] = "promo-server-url"; |
| 1093 | 1093 |
| 1094 // Should we prompt the user before allowing external extensions to install? |
| 1095 // Default is yes. |
| 1096 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions"; |
| 1097 |
| 1094 // Enables the Protector feature. | 1098 // Enables the Protector feature. |
| 1095 const char kProtector[] = "protector"; | 1099 const char kProtector[] = "protector"; |
| 1096 | 1100 |
| 1097 // Forces proxy auto-detection. | 1101 // Forces proxy auto-detection. |
| 1098 const char kProxyAutoDetect[] = "proxy-auto-detect"; | 1102 const char kProxyAutoDetect[] = "proxy-auto-detect"; |
| 1099 | 1103 |
| 1100 // Specifies a list of hosts for whom we bypass proxy settings and use direct | 1104 // Specifies a list of hosts for whom we bypass proxy settings and use direct |
| 1101 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also | 1105 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also |
| 1102 // specified. This is a comma-separated list of bypass rules. See: | 1106 // specified. This is a comma-separated list of bypass rules. See: |
| 1103 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. | 1107 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. |
| (...skipping 499 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 |