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

Unified Diff: chrome/common/chrome_switches.cc

Issue 1248823004: Phase 3: Implement New Task Manager Flag in about:flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flag is available only when ENABLE_TASK_MANAGER=1 Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 2039ce8b3420c8ffb0531121d9b3b887d36ffd67..4d9c3b280cf757355ecb9fa56c68b83d2570d763 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -1347,6 +1347,11 @@ const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
const char kDebugPrint[] = "debug-print";
#endif
+#if defined(ENABLE_TASK_MANAGER)
+// Enables the new implementation of the task manager.
+const char kEnableNewTaskManager[] = "enable-new-task-manager";
+#endif // defined(ENABLE_TASK_MANAGER)
+
bool AboutInSettingsEnabled() {
return SettingsWindowEnabled() &&
!base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -1396,6 +1401,13 @@ bool PowerOverlayEnabled() {
}
#endif
+#if defined(ENABLE_TASK_MANAGER)
+bool NewTaskManagerEnabled() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ kEnableNewTaskManager);
+}
+#endif // defined(ENABLE_TASK_MANAGER)
+
// -----------------------------------------------------------------------------
// DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
//
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698