Index: chrome/browser/ui/browser_commands.cc |
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
index de82e31324840c45892150c346eb4fc338e64f30..580f21f6141cf5460c1df9ef54a3db77985346a5 100644 |
--- a/chrome/browser/ui/browser_commands.cc |
+++ b/chrome/browser/ui/browser_commands.cc |
@@ -1009,17 +1009,25 @@ void ToggleDevToolsWindow(Browser* browser, DevToolsToggleAction action) { |
} |
bool CanOpenTaskManager() { |
+#if defined(ENABLE_TASK_MANAGER) |
#if defined(OS_WIN) |
// In metro we can't display the task manager, as it is a native window. |
return !win8::IsSingleWindowMetroMode(); |
#else |
return true; |
#endif |
+#else |
+ return false; |
+#endif |
} |
void OpenTaskManager(Browser* browser) { |
+#if defined(ENABLE_TASK_MANAGER) |
content::RecordAction(UserMetricsAction("TaskManager")); |
chrome::ShowTaskManager(browser); |
+#else |
+ NOTREACHED(); |
+#endif |
} |
void OpenFeedbackDialog(Browser* browser) { |