| Index: content/browser/child_process_launcher.cc
|
| diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
|
| index 1b65c72b69c0cafad0951cd26d4c72d0b6766030..171cbd78303944b283308a91b241bcb40b696889 100644
|
| --- a/content/browser/child_process_launcher.cc
|
| +++ b/content/browser/child_process_launcher.cc
|
| @@ -245,6 +245,11 @@ class ChildProcessLauncher::Context
|
| process_.set_handle(base::kNullProcessHandle);
|
| }
|
|
|
| + void SetProcessBackgrounded(bool background) {
|
| + DCHECK(!starting_);
|
| + process_.SetProcessBackgrounded(background);
|
| + }
|
| +
|
| static void TerminateInternal(
|
| #if defined(OS_LINUX)
|
| bool zygote,
|
| @@ -343,6 +348,10 @@ base::TerminationStatus ChildProcessLauncher::GetChildTerminationStatus(
|
| }
|
|
|
| void ChildProcessLauncher::SetProcessBackgrounded(bool background) {
|
| - DCHECK(!context_->starting_);
|
| - context_->process_.SetProcessBackgrounded(background);
|
| + BrowserThread::PostTask(
|
| + BrowserThread::PROCESS_LAUNCHER, FROM_HERE,
|
| + NewRunnableMethod(
|
| + context_.get(),
|
| + &ChildProcessLauncher::Context::SetProcessBackgrounded,
|
| + background));
|
| }
|
|
|