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

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

Powered by Google App Engine
This is Rietveld 408576698