Index: content/browser/child_process_launcher.cc |
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc |
index 28be72bb9c32eb853702adbdb0726379a3f9825c..e9d98e7e61b294fe7f39cd003cf2f89dee79c5ab 100644 |
--- a/content/browser/child_process_launcher.cc |
+++ b/content/browser/child_process_launcher.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -269,7 +269,12 @@ void TerminateOnLauncherThread(bool zygote, base::Process process) { |
void SetProcessBackgroundedOnLauncherThread(base::Process process, |
bool background) { |
DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER); |
+#if defined(OS_MACOSX) |
+ MachBroker* broker = MachBroker::GetInstance(); |
+ process.SetProcessBackgrounded(broker->TaskForPid(process.Pid()), background); |
+#else |
process.SetProcessBackgrounded(background); |
+#endif // defined(OS_MACOSX) |
#if defined(OS_ANDROID) |
SetChildProcessInForeground(process.Handle(), !background); |
#endif |