Index: content/browser/child_process_launcher.cc |
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc |
index bc7c42d898342e2797f92e45a9d4cadc2ff90a36..53d21fdb289fcf55753a4cb0c1c980fc084ae45b 100644 |
--- a/content/browser/child_process_launcher.cc |
+++ b/content/browser/child_process_launcher.cc |
@@ -313,7 +313,9 @@ void TerminateOnLauncherThread(bool zygote, base::Process process) { |
void SetProcessBackgroundedOnLauncherThread(base::Process process, |
bool background) { |
DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER); |
- process.SetProcessBackgrounded(background); |
+ if (process.CanBackgroundProcesses()) { |
+ process.SetProcessBackgrounded(background); |
+ } |
#if defined(OS_ANDROID) |
SetChildProcessInForeground(process.Handle(), !background); |
#endif |