| 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 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 // Specifies the testcase used by the IPC fuzzer. | 1349 // Specifies the testcase used by the IPC fuzzer. |
| 1350 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1350 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
| 1351 #endif | 1351 #endif |
| 1352 | 1352 |
| 1353 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) | 1353 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
| 1354 // Enables support to debug printing subsystem. | 1354 // Enables support to debug printing subsystem. |
| 1355 const char kDebugPrint[] = "debug-print"; | 1355 const char kDebugPrint[] = "debug-print"; |
| 1356 #endif | 1356 #endif |
| 1357 | 1357 |
| 1358 #if defined(ENABLE_TASK_MANAGER) | 1358 #if defined(ENABLE_TASK_MANAGER) |
| 1359 // Enables the new implementation of the task manager. | 1359 // Disables the new implementation of the task manager. |
| 1360 const char kEnableNewTaskManager[] = "enable-new-task-manager"; | 1360 const char kDisableNewTaskManager[] = "disable-new-task-manager"; |
| 1361 #endif // defined(ENABLE_TASK_MANAGER) | 1361 #endif // defined(ENABLE_TASK_MANAGER) |
| 1362 | 1362 |
| 1363 bool AboutInSettingsEnabled() { | 1363 bool AboutInSettingsEnabled() { |
| 1364 return SettingsWindowEnabled() && | 1364 return SettingsWindowEnabled() && |
| 1365 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1365 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1366 ::switches::kDisableAboutInSettings); | 1366 ::switches::kDisableAboutInSettings); |
| 1367 } | 1367 } |
| 1368 | 1368 |
| 1369 bool MdDownloadsEnabled() { | 1369 bool MdDownloadsEnabled() { |
| 1370 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1370 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1404 | 1404 |
| 1405 #if defined(OS_CHROMEOS) | 1405 #if defined(OS_CHROMEOS) |
| 1406 bool PowerOverlayEnabled() { | 1406 bool PowerOverlayEnabled() { |
| 1407 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1407 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1408 ::switches::kEnablePowerOverlay); | 1408 ::switches::kEnablePowerOverlay); |
| 1409 } | 1409 } |
| 1410 #endif | 1410 #endif |
| 1411 | 1411 |
| 1412 #if defined(ENABLE_TASK_MANAGER) | 1412 #if defined(ENABLE_TASK_MANAGER) |
| 1413 bool NewTaskManagerEnabled() { | 1413 bool NewTaskManagerEnabled() { |
| 1414 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1414 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1415 kEnableNewTaskManager); | 1415 kDisableNewTaskManager); |
| 1416 } | 1416 } |
| 1417 #endif // defined(ENABLE_TASK_MANAGER) | 1417 #endif // defined(ENABLE_TASK_MANAGER) |
| 1418 | 1418 |
| 1419 // ----------------------------------------------------------------------------- | 1419 // ----------------------------------------------------------------------------- |
| 1420 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1420 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1421 // | 1421 // |
| 1422 // You were going to just dump your switches here, weren't you? Instead, please | 1422 // You were going to just dump your switches here, weren't you? Instead, please |
| 1423 // put them in alphabetical order above, or in order inside the appropriate | 1423 // put them in alphabetical order above, or in order inside the appropriate |
| 1424 // ifdef at the bottom. The order should match the header. | 1424 // ifdef at the bottom. The order should match the header. |
| 1425 // ----------------------------------------------------------------------------- | 1425 // ----------------------------------------------------------------------------- |
| 1426 | 1426 |
| 1427 } // namespace switches | 1427 } // namespace switches |
| OLD | NEW |