$NetBSD: patch-components_performance__manager_decorators_process__metrics__decorator.cc,v 1.19 2026/05/10 15:29:56 kikadf Exp $

* Part of patchset to build chromium on NetBSD
* Based on OpenBSD's chromium patches, and
  pkgsrc's qt5-qtwebengine patches

--- components/performance_manager/decorators/process_metrics_decorator.cc.orig	2026-04-28 23:05:57.000000000 +0200
+++ components/performance_manager/decorators/process_metrics_decorator.cc
@@ -54,7 +54,7 @@ class ProcessMetricsDecorator::NodeMetri
     auto* process_node = ProcessNodeImpl::FromNode(context.GetProcessNode());
     process_node->set_private_footprint(memory_summary_->private_footprint);
     process_node->set_resident_set(memory_summary_->resident_set_size);
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
     process_node->set_private_swap(memory_summary_->private_swap);
 #endif
   }
