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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 | 194 |
195 // Triggers a plethora of diagnostic modes. | 195 // Triggers a plethora of diagnostic modes. |
196 const char kDiagnostics[] = "diagnostics"; | 196 const char kDiagnostics[] = "diagnostics"; |
197 | 197 |
198 // Sets the output format for diagnostic modes enabled by diagnostics flag. | 198 // Sets the output format for diagnostic modes enabled by diagnostics flag. |
199 const char kDiagnosticsFormat[] = "diagnostics-format"; | 199 const char kDiagnosticsFormat[] = "diagnostics-format"; |
200 | 200 |
201 // Tells the diagnostics mode to do the requested recovery step(s). | 201 // Tells the diagnostics mode to do the requested recovery step(s). |
202 const char kDiagnosticsRecovery[] = "diagnostics-recovery"; | 202 const char kDiagnosticsRecovery[] = "diagnostics-recovery"; |
203 | 203 |
204 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings | |
205 // instead of as a separate page, unless this flag is specified. | |
206 const char kDisableAboutInSettings[] = "disable-about-in-settings"; | |
Dan Beam
2014/08/07 22:36:16
line up = with others
michaelpg
2014/08/08 01:10:46
Done, forgot to re-align when I changed it from "e
| |
207 | |
204 // Disables the experimental Answers in Suggest feature. | 208 // Disables the experimental Answers in Suggest feature. |
205 const char kDisableAnswersInSuggest[] = "disable-answers-in-suggest"; | 209 const char kDisableAnswersInSuggest[] = "disable-answers-in-suggest"; |
206 | 210 |
207 // Disables the experimental asynchronous DNS client. | 211 // Disables the experimental asynchronous DNS client. |
208 const char kDisableAsyncDns[] = "disable-async-dns"; | 212 const char kDisableAsyncDns[] = "disable-async-dns"; |
209 | 213 |
210 // Disables CNAME lookup of the host when generating the Kerberos SPN for a | 214 // Disables CNAME lookup of the host when generating the Kerberos SPN for a |
211 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more | 215 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more |
212 // background. | 216 // background. |
213 const char kDisableAuthNegotiateCnameLookup[] = | 217 const char kDisableAuthNegotiateCnameLookup[] = |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1360 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) | 1364 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) |
1361 // Enables support to debug printing subsystem. | 1365 // Enables support to debug printing subsystem. |
1362 const char kDebugPrint[] = "debug-print"; | 1366 const char kDebugPrint[] = "debug-print"; |
1363 #endif | 1367 #endif |
1364 | 1368 |
1365 #ifndef NDEBUG | 1369 #ifndef NDEBUG |
1366 // Enables overriding the path of file manager extension. | 1370 // Enables overriding the path of file manager extension. |
1367 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; | 1371 const char kFileManagerExtensionPath[] = "filemgr-ext-path"; |
1368 #endif | 1372 #endif |
1369 | 1373 |
1374 bool AboutInSettingsEnabled() { | |
1375 return SettingsWindowEnabled() && | |
1376 !CommandLine::ForCurrentProcess()->HasSwitch( | |
1377 ::switches::kDisableAboutInSettings); | |
1378 } | |
1379 | |
1370 bool SettingsWindowEnabled() { | 1380 bool SettingsWindowEnabled() { |
1371 #if defined(OS_CHROMEOS) | 1381 #if defined(OS_CHROMEOS) |
1372 return !CommandLine::ForCurrentProcess()->HasSwitch( | 1382 return !CommandLine::ForCurrentProcess()->HasSwitch( |
1373 ::switches::kDisableSettingsWindow); | 1383 ::switches::kDisableSettingsWindow); |
1374 #else | 1384 #else |
1375 return CommandLine::ForCurrentProcess()->HasSwitch( | 1385 return CommandLine::ForCurrentProcess()->HasSwitch( |
1376 ::switches::kEnableSettingsWindow); | 1386 ::switches::kEnableSettingsWindow); |
1377 #endif | 1387 #endif |
1378 } | 1388 } |
1379 | 1389 |
1380 // ----------------------------------------------------------------------------- | 1390 // ----------------------------------------------------------------------------- |
1381 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1391 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1382 // | 1392 // |
1383 // You were going to just dump your switches here, weren't you? Instead, please | 1393 // You were going to just dump your switches here, weren't you? Instead, please |
1384 // put them in alphabetical order above, or in order inside the appropriate | 1394 // put them in alphabetical order above, or in order inside the appropriate |
1385 // ifdef at the bottom. The order should match the header. | 1395 // ifdef at the bottom. The order should match the header. |
1386 // ----------------------------------------------------------------------------- | 1396 // ----------------------------------------------------------------------------- |
1387 | 1397 |
1388 } // namespace switches | 1398 } // namespace switches |
OLD | NEW |