| 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 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 #if defined(ENABLE_IPC_FUZZER) | 1224 #if defined(ENABLE_IPC_FUZZER) |
| 1225 // Specifies the testcase used by the IPC fuzzer. | 1225 // Specifies the testcase used by the IPC fuzzer. |
| 1226 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1226 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
| 1227 #endif | 1227 #endif |
| 1228 | 1228 |
| 1229 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) | 1229 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
| 1230 // Enables support to debug printing subsystem. | 1230 // Enables support to debug printing subsystem. |
| 1231 const char kDebugPrint[] = "debug-print"; | 1231 const char kDebugPrint[] = "debug-print"; |
| 1232 #endif | 1232 #endif |
| 1233 | 1233 |
| 1234 #if defined(ENABLE_TASK_MANAGER) | |
| 1235 // Disables the new implementation of the task manager. | |
| 1236 const char kDisableNewTaskManager[] = "disable-new-task-manager"; | |
| 1237 #endif // defined(ENABLE_TASK_MANAGER) | |
| 1238 | |
| 1239 #if defined(ENABLE_WAYLAND_SERVER) | 1234 #if defined(ENABLE_WAYLAND_SERVER) |
| 1240 // Enables Wayland display server support. | 1235 // Enables Wayland display server support. |
| 1241 const char kEnableWaylandServer[] = "enable-wayland-server"; | 1236 const char kEnableWaylandServer[] = "enable-wayland-server"; |
| 1242 #endif | 1237 #endif |
| 1243 | 1238 |
| 1244 #if defined(OS_ANDROID) | 1239 #if defined(OS_ANDROID) |
| 1245 // Forces the update menu item to show. | 1240 // Forces the update menu item to show. |
| 1246 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; | 1241 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; |
| 1247 | 1242 |
| 1248 // Forces a summary to be displayed below the update menu item. | 1243 // Forces a summary to be displayed below the update menu item. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 #endif | 1307 #endif |
| 1313 } | 1308 } |
| 1314 | 1309 |
| 1315 #if defined(OS_CHROMEOS) | 1310 #if defined(OS_CHROMEOS) |
| 1316 bool PowerOverlayEnabled() { | 1311 bool PowerOverlayEnabled() { |
| 1317 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 1312 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1318 ::switches::kEnablePowerOverlay); | 1313 ::switches::kEnablePowerOverlay); |
| 1319 } | 1314 } |
| 1320 #endif | 1315 #endif |
| 1321 | 1316 |
| 1322 #if defined(ENABLE_TASK_MANAGER) | |
| 1323 bool NewTaskManagerEnabled() { | |
| 1324 #if defined(OS_MACOSX) | |
| 1325 return false; // The new task manager hasn't been adopted on Mac yet. | |
| 1326 #else | |
| 1327 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 1328 kDisableNewTaskManager); | |
| 1329 #endif // defined(OS_MACOSX) | |
| 1330 } | |
| 1331 #endif // defined(ENABLE_TASK_MANAGER) | |
| 1332 | |
| 1333 // ----------------------------------------------------------------------------- | 1317 // ----------------------------------------------------------------------------- |
| 1334 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1318 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1335 // | 1319 // |
| 1336 // You were going to just dump your switches here, weren't you? Instead, please | 1320 // You were going to just dump your switches here, weren't you? Instead, please |
| 1337 // put them in alphabetical order above, or in order inside the appropriate | 1321 // put them in alphabetical order above, or in order inside the appropriate |
| 1338 // ifdef at the bottom. The order should match the header. | 1322 // ifdef at the bottom. The order should match the header. |
| 1339 // ----------------------------------------------------------------------------- | 1323 // ----------------------------------------------------------------------------- |
| 1340 | 1324 |
| 1341 } // namespace switches | 1325 } // namespace switches |
| OLD | NEW |