| Index: chrome/browser/task_manager/sampling/task_group_sampler.cc
|
| diff --git a/chrome/browser/task_manager/sampling/task_group_sampler.cc b/chrome/browser/task_manager/sampling/task_group_sampler.cc
|
| index cb32eaee894bad690bf95018e6fc2751e42a8992..9cf7872049e0c03b79a91670b51dbab995f02a59 100644
|
| --- a/chrome/browser/task_manager/sampling/task_group_sampler.cc
|
| +++ b/chrome/browser/task_manager/sampling/task_group_sampler.cc
|
| @@ -181,8 +181,12 @@ int TaskGroupSampler::RefreshOpenFdCount() {
|
|
|
| bool TaskGroupSampler::RefreshProcessPriority() {
|
| DCHECK(worker_pool_sequenced_checker_.CalledOnValidSequence());
|
| -
|
| +#if defined(OS_MACOSX)
|
| + return process_.IsProcessBackgrounded(
|
| + content::BrowserChildProcessHost::GetPortProvider());
|
| +#else
|
| return process_.IsProcessBackgrounded();
|
| +#endif // defined(OS_MACOSX)
|
| }
|
|
|
| } // namespace task_manager
|
|
|