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

Unified Diff: chrome/browser/task_manager/providers/arc/arc_process_task_provider.cc

Issue 2655633002: [task_manager] Add ARC process whitelist. (Closed)
Patch Set: Address comments. Created 3 years, 11 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/browser/task_manager/providers/arc/arc_process_task_provider.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/task_manager/providers/arc/arc_process_task_provider.cc
diff --git a/chrome/browser/task_manager/providers/arc/arc_process_task_provider.cc b/chrome/browser/task_manager/providers/arc/arc_process_task_provider.cc
index e843756d4671f0e54f6f8146e6282c04d17fe193..546d3eadf2a26d22d5047d3b13cbf6b2c0880664 100644
--- a/chrome/browser/task_manager/providers/arc/arc_process_task_provider.cc
+++ b/chrome/browser/task_manager/providers/arc/arc_process_task_provider.cc
@@ -60,6 +60,10 @@ void ArcProcessTaskProvider::UpdateProcessList(
nspid_to_remove.insert(entry.first);
for (const auto& entry : processes) {
+ // Skip adding or updating processes we will not display.
+ if (!process_filter_.ShouldDisplayProcess(entry))
+ continue;
+
if (nspid_to_remove.erase(entry.nspid()) == 0) {
// New arc process.
std::unique_ptr<ArcProcessTask>& task = (*pid_to_task)[entry.nspid()];
« no previous file with comments | « chrome/browser/task_manager/providers/arc/arc_process_task_provider.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698