| 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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1247 #if defined(ENABLE_IPC_FUZZER) | 1247 #if defined(ENABLE_IPC_FUZZER) |
| 1248 // Specifies the testcase used by the IPC fuzzer. | 1248 // Specifies the testcase used by the IPC fuzzer. |
| 1249 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1249 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
| 1250 #endif | 1250 #endif |
| 1251 | 1251 |
| 1252 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) | 1252 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
| 1253 // Enables support to debug printing subsystem. | 1253 // Enables support to debug printing subsystem. |
| 1254 const char kDebugPrint[] = "debug-print"; | 1254 const char kDebugPrint[] = "debug-print"; |
| 1255 #endif | 1255 #endif |
| 1256 | 1256 |
| 1257 #if defined(ENABLE_TASK_MANAGER) | |
| 1258 // Disables the new implementation of the task manager. | |
| 1259 const char kDisableNewTaskManager[] = "disable-new-task-manager"; | |
| 1260 #endif // defined(ENABLE_TASK_MANAGER) | |
| 1261 | |
| 1262 #if defined(ENABLE_WAYLAND_SERVER) | 1257 #if defined(ENABLE_WAYLAND_SERVER) |
| 1263 // Enables Wayland display server support. | 1258 // Enables Wayland display server support. |
| 1264 const char kEnableWaylandServer[] = "enable-wayland-server"; | 1259 const char kEnableWaylandServer[] = "enable-wayland-server"; |
| 1265 #endif | 1260 #endif |
| 1266 | 1261 |
| 1267 #if defined(OS_ANDROID) | 1262 #if defined(OS_ANDROID) |
| 1268 // Forces the update menu item to show. | 1263 // Forces the update menu item to show. |
| 1269 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; | 1264 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; |
| 1270 | 1265 |
| 1271 // Forces a summary to be displayed below the update menu item. | 1266 // Forces a summary to be displayed below the update menu item. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 #endif | 1330 #endif |
| 1336 } | 1331 } |
| 1337 | 1332 |
| 1338 #if defined(OS_CHROMEOS) | 1333 #if defined(OS_CHROMEOS) |
| 1339 bool PowerOverlayEnabled() { | 1334 bool PowerOverlayEnabled() { |
| 1340 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1335 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1341 ::switches::kEnablePowerOverlay); | 1336 ::switches::kEnablePowerOverlay); |
| 1342 } | 1337 } |
| 1343 #endif | 1338 #endif |
| 1344 | 1339 |
| 1345 #if defined(ENABLE_TASK_MANAGER) | |
| 1346 bool NewTaskManagerEnabled() { | |
| 1347 #if defined(OS_MACOSX) | |
| 1348 return false; // The new task manager hasn't been adopted on Mac yet. | |
| 1349 #else | |
| 1350 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 1351 kDisableNewTaskManager); | |
| 1352 #endif // defined(OS_MACOSX) | |
| 1353 } | |
| 1354 #endif // defined(ENABLE_TASK_MANAGER) | |
| 1355 | |
| 1356 // ----------------------------------------------------------------------------- | 1340 // ----------------------------------------------------------------------------- |
| 1357 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1341 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1358 // | 1342 // |
| 1359 // You were going to just dump your switches here, weren't you? Instead, please | 1343 // You were going to just dump your switches here, weren't you? Instead, please |
| 1360 // put them in alphabetical order above, or in order inside the appropriate | 1344 // put them in alphabetical order above, or in order inside the appropriate |
| 1361 // ifdef at the bottom. The order should match the header. | 1345 // ifdef at the bottom. The order should match the header. |
| 1362 // ----------------------------------------------------------------------------- | 1346 // ----------------------------------------------------------------------------- |
| 1363 | 1347 |
| 1364 } // namespace switches | 1348 } // namespace switches |
| OLD | NEW |