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