| 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 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 #if defined(ENABLE_IPC_FUZZER) | 1264 #if defined(ENABLE_IPC_FUZZER) |
| 1265 // Specifies the testcase used by the IPC fuzzer. | 1265 // Specifies the testcase used by the IPC fuzzer. |
| 1266 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1266 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
| 1267 #endif | 1267 #endif |
| 1268 | 1268 |
| 1269 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) | 1269 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
| 1270 // Enables support to debug printing subsystem. | 1270 // Enables support to debug printing subsystem. |
| 1271 const char kDebugPrint[] = "debug-print"; | 1271 const char kDebugPrint[] = "debug-print"; |
| 1272 #endif | 1272 #endif |
| 1273 | 1273 |
| 1274 #if defined(ENABLE_TASK_MANAGER) | |
| 1275 // Disables the new implementation of the task manager. | |
| 1276 const char kDisableNewTaskManager[] = "disable-new-task-manager"; | |
| 1277 #endif // defined(ENABLE_TASK_MANAGER) | |
| 1278 | |
| 1279 #if defined(ENABLE_WAYLAND_SERVER) | 1274 #if defined(ENABLE_WAYLAND_SERVER) |
| 1280 // Enables Wayland display server support. | 1275 // Enables Wayland display server support. |
| 1281 const char kEnableWaylandServer[] = "enable-wayland-server"; | 1276 const char kEnableWaylandServer[] = "enable-wayland-server"; |
| 1282 #endif | 1277 #endif |
| 1283 | 1278 |
| 1284 #if defined(OS_ANDROID) | 1279 #if defined(OS_ANDROID) |
| 1285 // Forces the update menu item to show. | 1280 // Forces the update menu item to show. |
| 1286 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; | 1281 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; |
| 1287 | 1282 |
| 1288 // Forces a summary to be displayed below the update menu item. | 1283 // Forces a summary to be displayed below the update menu item. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 #endif | 1347 #endif |
| 1353 } | 1348 } |
| 1354 | 1349 |
| 1355 #if defined(OS_CHROMEOS) | 1350 #if defined(OS_CHROMEOS) |
| 1356 bool PowerOverlayEnabled() { | 1351 bool PowerOverlayEnabled() { |
| 1357 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1352 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1358 ::switches::kEnablePowerOverlay); | 1353 ::switches::kEnablePowerOverlay); |
| 1359 } | 1354 } |
| 1360 #endif | 1355 #endif |
| 1361 | 1356 |
| 1362 #if defined(ENABLE_TASK_MANAGER) | |
| 1363 bool NewTaskManagerEnabled() { | |
| 1364 #if defined(OS_MACOSX) | |
| 1365 return false; // The new task manager hasn't been adopted on Mac yet. | |
| 1366 #else | |
| 1367 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 1368 kDisableNewTaskManager); | |
| 1369 #endif // defined(OS_MACOSX) | |
| 1370 } | |
| 1371 #endif // defined(ENABLE_TASK_MANAGER) | |
| 1372 | |
| 1373 // ----------------------------------------------------------------------------- | 1357 // ----------------------------------------------------------------------------- |
| 1374 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1358 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1375 // | 1359 // |
| 1376 // You were going to just dump your switches here, weren't you? Instead, please | 1360 // You were going to just dump your switches here, weren't you? Instead, please |
| 1377 // put them in alphabetical order above, or in order inside the appropriate | 1361 // put them in alphabetical order above, or in order inside the appropriate |
| 1378 // ifdef at the bottom. The order should match the header. | 1362 // ifdef at the bottom. The order should match the header. |
| 1379 // ----------------------------------------------------------------------------- | 1363 // ----------------------------------------------------------------------------- |
| 1380 | 1364 |
| 1381 } // namespace switches | 1365 } // namespace switches |
| OLD | NEW |