| 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 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 #if defined(ENABLE_IPC_FUZZER) | 1340 #if defined(ENABLE_IPC_FUZZER) |
| 1341 // Specifies the testcase used by the IPC fuzzer. | 1341 // Specifies the testcase used by the IPC fuzzer. |
| 1342 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1342 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
| 1343 #endif | 1343 #endif |
| 1344 | 1344 |
| 1345 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) | 1345 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
| 1346 // Enables support to debug printing subsystem. | 1346 // Enables support to debug printing subsystem. |
| 1347 const char kDebugPrint[] = "debug-print"; | 1347 const char kDebugPrint[] = "debug-print"; |
| 1348 #endif | 1348 #endif |
| 1349 | 1349 |
| 1350 #if defined(ENABLE_TASK_MANAGER) |
| 1351 // Enables the new implementation of the task manager. |
| 1352 const char kEnableNewTaskManager[] = "enable-new-task-manager"; |
| 1353 #endif // defined(ENABLE_TASK_MANAGER) |
| 1354 |
| 1350 bool AboutInSettingsEnabled() { | 1355 bool AboutInSettingsEnabled() { |
| 1351 return SettingsWindowEnabled() && | 1356 return SettingsWindowEnabled() && |
| 1352 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 1357 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1353 ::switches::kDisableAboutInSettings); | 1358 ::switches::kDisableAboutInSettings); |
| 1354 } | 1359 } |
| 1355 | 1360 |
| 1356 bool MdDownloadsEnabled() { | 1361 bool MdDownloadsEnabled() { |
| 1357 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1362 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1358 ::switches::kEnableMaterialDesignDownloads); | 1363 ::switches::kEnableMaterialDesignDownloads); |
| 1359 } | 1364 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1389 #endif | 1394 #endif |
| 1390 } | 1395 } |
| 1391 | 1396 |
| 1392 #if defined(OS_CHROMEOS) | 1397 #if defined(OS_CHROMEOS) |
| 1393 bool PowerOverlayEnabled() { | 1398 bool PowerOverlayEnabled() { |
| 1394 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1399 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1395 ::switches::kEnablePowerOverlay); | 1400 ::switches::kEnablePowerOverlay); |
| 1396 } | 1401 } |
| 1397 #endif | 1402 #endif |
| 1398 | 1403 |
| 1404 #if defined(ENABLE_TASK_MANAGER) |
| 1405 bool NewTaskManagerEnabled() { |
| 1406 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1407 kEnableNewTaskManager); |
| 1408 } |
| 1409 #endif // defined(ENABLE_TASK_MANAGER) |
| 1410 |
| 1399 // ----------------------------------------------------------------------------- | 1411 // ----------------------------------------------------------------------------- |
| 1400 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1412 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1401 // | 1413 // |
| 1402 // You were going to just dump your switches here, weren't you? Instead, please | 1414 // You were going to just dump your switches here, weren't you? Instead, please |
| 1403 // put them in alphabetical order above, or in order inside the appropriate | 1415 // put them in alphabetical order above, or in order inside the appropriate |
| 1404 // ifdef at the bottom. The order should match the header. | 1416 // ifdef at the bottom. The order should match the header. |
| 1405 // ----------------------------------------------------------------------------- | 1417 // ----------------------------------------------------------------------------- |
| 1406 | 1418 |
| 1407 } // namespace switches | 1419 } // namespace switches |
| OLD | NEW |