Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1314)

Unified Diff: content/browser/child_process_launcher.cc

Issue 989703002: Add support for backgrounding processes on the Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« base/process/process_posix.cc ('K') | « base/process/process_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index e5c93ee3562bbecd378d96c671d77c4fe219c39e..c5a09cace656451d0da412ebccccc81b8d2d9e2c 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -503,7 +503,12 @@ void ChildProcessLauncher::Context::Terminate() {
void ChildProcessLauncher::Context::SetProcessBackgroundedInternal(
base::Process process,
bool background) {
+#if defined(OS_MACOSX)
+ MachBroker* broker = MachBroker::GetInstance();
+ process.SetProcessBackgrounded(broker->TaskForPid(process.Pid()), background);
gab 2015/03/09 15:34:50 To analyze the impact of this you'll want to put t
+#else
process.SetProcessBackgrounded(background);
+#endif // defined(OS_MACOSX)
#if defined(OS_ANDROID)
SetChildProcessInForeground(process.Handle(), !background);
#endif
« base/process/process_posix.cc ('K') | « base/process/process_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698