| Index: content/child/scoped_child_process_reference.cc
|
| diff --git a/content/child/scoped_child_process_reference.cc b/content/child/scoped_child_process_reference.cc
|
| index f7d35fb2842763947ce3778aa9bb14554fa6b84c..757195708ff8f28c0e503ac10402f1c5d00234ed 100644
|
| --- a/content/child/scoped_child_process_reference.cc
|
| +++ b/content/child/scoped_child_process_reference.cc
|
| @@ -5,6 +5,9 @@
|
| #include "content/child/scoped_child_process_reference.h"
|
|
|
| #include "base/bind.h"
|
| +#include "base/location.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| #include "content/child/child_process.h"
|
|
|
| @@ -23,10 +26,9 @@ ScopedChildProcessReference::~ScopedChildProcessReference() {
|
| void ScopedChildProcessReference::ReleaseWithDelay(
|
| const base::TimeDelta& delay) {
|
| DCHECK(has_reference_);
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - base::Bind(&ChildProcess::ReleaseProcess,
|
| - base::Unretained(ChildProcess::current())),
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| + FROM_HERE, base::Bind(&ChildProcess::ReleaseProcess,
|
| + base::Unretained(ChildProcess::current())),
|
| delay);
|
| has_reference_ = false;
|
| }
|
|
|