Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(793)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 1912773002: Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error 3 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 #if defined(ENABLE_IPC_FUZZER) 1261 #if defined(ENABLE_IPC_FUZZER)
1262 // Specifies the testcase used by the IPC fuzzer. 1262 // Specifies the testcase used by the IPC fuzzer.
1263 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; 1263 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
1264 #endif 1264 #endif
1265 1265
1266 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) 1266 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1267 // Enables support to debug printing subsystem. 1267 // Enables support to debug printing subsystem.
1268 const char kDebugPrint[] = "debug-print"; 1268 const char kDebugPrint[] = "debug-print";
1269 #endif 1269 #endif
1270 1270
1271 #if defined(ENABLE_TASK_MANAGER)
1272 // Disables the new implementation of the task manager.
1273 const char kDisableNewTaskManager[] = "disable-new-task-manager";
1274 #endif // defined(ENABLE_TASK_MANAGER)
1275
1276 #if defined(ENABLE_WAYLAND_SERVER) 1271 #if defined(ENABLE_WAYLAND_SERVER)
1277 // Enables Wayland display server support. 1272 // Enables Wayland display server support.
1278 const char kEnableWaylandServer[] = "enable-wayland-server"; 1273 const char kEnableWaylandServer[] = "enable-wayland-server";
1279 #endif 1274 #endif
1280 1275
1281 #if defined(OS_ANDROID) 1276 #if defined(OS_ANDROID)
1282 // Forces the update menu item to show. 1277 // Forces the update menu item to show.
1283 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item"; 1278 const char kForceShowUpdateMenuItem[] = "force-show-update-menu-item";
1284 1279
1285 // Forces a summary to be displayed below the update menu item. 1280 // Forces a summary to be displayed below the update menu item.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 #endif 1344 #endif
1350 } 1345 }
1351 1346
1352 #if defined(OS_CHROMEOS) 1347 #if defined(OS_CHROMEOS)
1353 bool PowerOverlayEnabled() { 1348 bool PowerOverlayEnabled() {
1354 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1349 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1355 ::switches::kEnablePowerOverlay); 1350 ::switches::kEnablePowerOverlay);
1356 } 1351 }
1357 #endif 1352 #endif
1358 1353
1359 #if defined(ENABLE_TASK_MANAGER)
1360 bool NewTaskManagerEnabled() {
1361 #if defined(OS_MACOSX)
1362 return false; // The new task manager hasn't been adopted on Mac yet.
1363 #else
1364 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1365 kDisableNewTaskManager);
1366 #endif // defined(OS_MACOSX)
1367 }
1368 #endif // defined(ENABLE_TASK_MANAGER)
1369
1370 // ----------------------------------------------------------------------------- 1354 // -----------------------------------------------------------------------------
1371 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1355 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1372 // 1356 //
1373 // You were going to just dump your switches here, weren't you? Instead, please 1357 // You were going to just dump your switches here, weren't you? Instead, please
1374 // put them in alphabetical order above, or in order inside the appropriate 1358 // put them in alphabetical order above, or in order inside the appropriate
1375 // ifdef at the bottom. The order should match the header. 1359 // ifdef at the bottom. The order should match the header.
1376 // ----------------------------------------------------------------------------- 1360 // -----------------------------------------------------------------------------
1377 1361
1378 } // namespace switches 1362 } // namespace switches
OLDNEW
« chrome/browser/ui/views/new_task_manager_view.cc ('K') | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698