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

Unified Diff: chrome/browser/extensions/api/processes/processes_api.cc

Issue 209353016: Turn off Task Manager should not break the build on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean comments Created 6 years, 9 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 | « no previous file | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | chrome/browser/ui/browser_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698