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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 | 1064 |
1065 // Controls whether profile data is periodically flushed to a file. Normally | 1065 // Controls whether profile data is periodically flushed to a file. Normally |
1066 // the data gets written on exit but cases exist where chrome doesn't exit | 1066 // the data gets written on exit but cases exist where chrome doesn't exit |
1067 // cleanly (especially when using single-process). A time in seconds can be | 1067 // cleanly (especially when using single-process). A time in seconds can be |
1068 // specified. | 1068 // specified. |
1069 const char kProfilingFlush[] = "profiling-flush"; | 1069 const char kProfilingFlush[] = "profiling-flush"; |
1070 | 1070 |
1071 // Specifies a custom URL for fetching NTP promo data. | 1071 // Specifies a custom URL for fetching NTP promo data. |
1072 const char kPromoServerURL[] = "promo-server-url"; | 1072 const char kPromoServerURL[] = "promo-server-url"; |
1073 | 1073 |
| 1074 // Should we prompt the user before allowing external extensions to install? |
| 1075 // Default is yes. |
| 1076 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions"; |
| 1077 |
1074 // Enables the Protector feature. | 1078 // Enables the Protector feature. |
1075 const char kProtector[] = "protector"; | 1079 const char kProtector[] = "protector"; |
1076 | 1080 |
1077 // Forces proxy auto-detection. | 1081 // Forces proxy auto-detection. |
1078 const char kProxyAutoDetect[] = "proxy-auto-detect"; | 1082 const char kProxyAutoDetect[] = "proxy-auto-detect"; |
1079 | 1083 |
1080 // Specifies a list of hosts for whom we bypass proxy settings and use direct | 1084 // Specifies a list of hosts for whom we bypass proxy settings and use direct |
1081 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also | 1085 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also |
1082 // specified. This is a comma-separated list of bypass rules. See: | 1086 // specified. This is a comma-separated list of bypass rules. See: |
1083 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. | 1087 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 return true; | 1584 return true; |
1581 #elif defined(OS_WIN) | 1585 #elif defined(OS_WIN) |
1582 return true; | 1586 return true; |
1583 #else | 1587 #else |
1584 return CommandLine::ForCurrentProcess()->HasSwitch( | 1588 return CommandLine::ForCurrentProcess()->HasSwitch( |
1585 switches::kEnableFramelessConstrainedDialogs); | 1589 switches::kEnableFramelessConstrainedDialogs); |
1586 #endif | 1590 #endif |
1587 } | 1591 } |
1588 | 1592 |
1589 } // namespace chrome | 1593 } // namespace chrome |
OLD | NEW |