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 8cd69b80d0d7d7a760d869b2e17ef2a29db60e2f..4c8335edd0dc000236a445fc856d021ee7c753ed 100644 |
--- a/components/scheduler/child/webthread_impl_for_worker_scheduler.cc |
+++ b/components/scheduler/child/webthread_impl_for_worker_scheduler.cc |
@@ -20,8 +20,13 @@ namespace scheduler { |
WebThreadImplForWorkerScheduler::WebThreadImplForWorkerScheduler( |
const char* name) |
- : thread_(new base::Thread(name)) { |
- thread_->Start(); |
+ : WebThreadImplForWorkerScheduler(name, base::Thread::Options()) {} |
+ |
+WebThreadImplForWorkerScheduler::WebThreadImplForWorkerScheduler( |
+ const char* name, |
+ base::Thread::Options options) |
+ : thread_(new base::Thread(name ? name : std::string())) { |
+ thread_->StartWithOptions(options); |
thread_task_runner_ = thread_->task_runner(); |
base::WaitableEvent completion(false, false); |