$OpenBSD: patch-chrome_browser_task_manager_sampling_task_group_sampler_h,v 1.4 2018/06/06 07:50:54 robert Exp $
Index: chrome/browser/task_manager/sampling/task_group_sampler.h
--- chrome/browser/task_manager/sampling/task_group_sampler.h.orig
+++ chrome/browser/task_manager/sampling/task_group_sampler.h
@@ -32,7 +32,7 @@ class TaskGroupSampler : public base::RefCountedThread
   using OnCpuRefreshCallback = base::Callback<void(double)>;
   using OnSwappedMemRefreshCallback = base::Callback<void(int64_t)>;
   using OnIdleWakeupsCallback = base::Callback<void(int)>;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   using OnOpenFdCountCallback = base::Callback<void(int)>;
 #endif  // defined(OS_LINUX)
   using OnProcessPriorityCallback = base::Callback<void(bool)>;
@@ -43,7 +43,7 @@ class TaskGroupSampler : public base::RefCountedThread
       const OnCpuRefreshCallback& on_cpu_refresh,
       const OnSwappedMemRefreshCallback& on_memory_refresh,
       const OnIdleWakeupsCallback& on_idle_wakeups,
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
       const OnOpenFdCountCallback& on_open_fd_count,
 #endif  // defined(OS_LINUX)
       const OnProcessPriorityCallback& on_process_priority);
@@ -60,7 +60,7 @@ class TaskGroupSampler : public base::RefCountedThread
   double RefreshCpuUsage();
   int64_t RefreshSwappedMem();
   int RefreshIdleWakeupsPerSecond();
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   int RefreshOpenFdCount();
 #endif  // defined(OS_LINUX)
   bool RefreshProcessPriority();
@@ -80,7 +80,7 @@ class TaskGroupSampler : public base::RefCountedThread
   const OnCpuRefreshCallback on_cpu_refresh_callback_;
   const OnSwappedMemRefreshCallback on_swapped_mem_refresh_callback_;
   const OnIdleWakeupsCallback on_idle_wakeups_callback_;
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   const OnOpenFdCountCallback on_open_fd_count_callback_;
 #endif  // defined(OS_LINUX)
   const OnProcessPriorityCallback on_process_priority_callback_;
