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

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: 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
Index: chrome/common/chrome_switches.cc
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 2039ce8b3420c8ffb0531121d9b3b887d36ffd67..be4a4a96b10b8f62b4e39bd3581fdc1adaf5b276 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -472,6 +472,9 @@ const char kEnableNetBenchmarking[] = "enable-net-benchmarking";
// Enables the new bookmark app system.
const char kEnableNewBookmarkApps[] = "enable-new-bookmark-apps";
+// Enables the new implementation of the task manager.
+const char kEnableNewTaskManager[] = "enable-new-task-manager";
+
// Enable auto-reload of error pages if offline.
const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
@@ -1368,6 +1371,13 @@ bool MediaRouterEnabled() {
::switches::kEnableMediaRouter);
}
+bool NewTaskManagerEnabled() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableNewTaskManager))
Lei Zhang 2015/07/21 21:28:54 Since you are not doing anything fancy, just: ret
afakhry 2015/07/21 22:16:12 Done.
+ return true;
+
+ return false;
+}
+
bool PdfMaterialUIEnabled() {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
return true;

Powered by Google App Engine
This is Rietveld 408576698