summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_common_profiler_thread__profiler.cc
blob: 47725ace7955220b7358512b3b66bfeba22a47a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- chrome/common/profiler/thread_profiler.cc.orig	2021-04-23 13:14:22 UTC
+++ chrome/common/profiler/thread_profiler.cc
@@ -58,6 +58,9 @@ ThreadProfiler* g_main_thread_instance = nullptr;
 constexpr double kFractionOfExecutionTimeToSample = 0.02;
 
 bool IsCurrentProcessBackgrounded() {
+#if defined(OS_BSD)
+  return false;
+#else
 #if defined(OS_MAC)
   // Port provider that returns the calling process's task port, ignoring its
   // argument.
@@ -71,6 +74,7 @@ bool IsCurrentProcessBackgrounded() {
 #else   // defined(OS_MAC)
   return base::Process::Current().IsProcessBackgrounded();
 #endif  // defined(OS_MAC)
+#endif
 }
 
 #if defined(OS_ANDROID) && BUILDFLAG(ENABLE_ARM_CFI_TABLE)