Index: chrome/browser/extensions/api/processes/processes_api.cc |
diff --git a/chrome/browser/extensions/api/processes/processes_api.cc b/chrome/browser/extensions/api/processes/processes_api.cc |
index ad4d525c37f5a45224abbe6ce98d3725723a8f48..6d6034e66843ac4c742c59c125147e396086d828 100644 |
--- a/chrome/browser/extensions/api/processes/processes_api.cc |
+++ b/chrome/browser/extensions/api/processes/processes_api.cc |
@@ -640,6 +640,7 @@ bool TerminateFunction::RunImpl() { |
void TerminateFunction::TerminateProcess() { |
+#if defined(ENABLE_TASK_MANAGER) |
TaskManagerModel* model = TaskManager::GetInstance()->model(); |
int count = model->ResourceCount(); |
@@ -669,6 +670,10 @@ void TerminateFunction::TerminateProcess() { |
// Balance the AddRef in the RunImpl. |
Release(); |
+#else |
+ error_ = errors::kExtensionNotSupported; |
+ SendResponse(false); |
+#endif // defined(ENABLE_TASK_MANAGER) |
} |
GetProcessInfoFunction::GetProcessInfoFunction() |