| Index: components/scheduler/child/webthread_impl_for_worker_scheduler.cc
|
| diff --git a/components/scheduler/child/webthread_impl_for_worker_scheduler.cc b/components/scheduler/child/webthread_impl_for_worker_scheduler.cc
|
| index 2ffa68e6491d815960c49882c15a6773f40831bb..ff7ec336f000ab9190110b28d92959c34a35a4b1 100644
|
| --- a/components/scheduler/child/webthread_impl_for_worker_scheduler.cc
|
| +++ b/components/scheduler/child/webthread_impl_for_worker_scheduler.cc
|
| @@ -33,7 +33,9 @@ WebThreadImplForWorkerScheduler::WebThreadImplForWorkerScheduler(
|
| }
|
|
|
| void WebThreadImplForWorkerScheduler::Init() {
|
| - base::WaitableEvent completion(false, false);
|
| + base::WaitableEvent completion(
|
| + base::WaitableEvent::ResetPolicy::AUTOMATIC,
|
| + base::WaitableEvent::InitialState::NOT_SIGNALED);
|
| thread_task_runner_->PostTask(
|
| FROM_HERE, base::Bind(&WebThreadImplForWorkerScheduler::InitOnThread,
|
| base::Unretained(this), &completion));
|
| @@ -42,7 +44,9 @@ void WebThreadImplForWorkerScheduler::Init() {
|
|
|
| WebThreadImplForWorkerScheduler::~WebThreadImplForWorkerScheduler() {
|
| if (task_runner_delegate_) {
|
| - base::WaitableEvent completion(false, false);
|
| + base::WaitableEvent completion(
|
| + base::WaitableEvent::ResetPolicy::AUTOMATIC,
|
| + base::WaitableEvent::InitialState::NOT_SIGNALED);
|
| // Restore the original task runner so that the thread can tear itself down.
|
| thread_task_runner_->PostTask(
|
| FROM_HERE,
|
|
|