Index: gin/v8_platform.cc |
diff --git a/gin/v8_platform.cc b/gin/v8_platform.cc |
index 6e5491bff11801397e353cb371b1a9762fffb970..44f8dd8c8fd781f263d806ee3410003f4e545d49 100644 |
--- a/gin/v8_platform.cc |
+++ b/gin/v8_platform.cc |
@@ -7,7 +7,7 @@ |
#include "base/bind.h" |
#include "base/location.h" |
#include "base/sys_info.h" |
-#include "base/threading/worker_pool.h" |
+#include "base/task_scheduler/post_task.h" |
#include "base/trace_event/trace_event.h" |
#include "gin/per_isolate_data.h" |
@@ -67,10 +67,10 @@ size_t V8Platform::NumberOfAvailableBackgroundThreads() { |
void V8Platform::CallOnBackgroundThread( |
v8::Task* task, |
v8::Platform::ExpectedRuntime expected_runtime) { |
- base::WorkerPool::PostTask( |
- FROM_HERE, |
- base::Bind(&v8::Task::Run, base::Owned(task)), |
- expected_runtime == v8::Platform::kLongRunningTask); |
+ base::PostTaskWithTraits( |
+ FROM_HERE, base::TaskTraits().WithShutdownBehavior( |
+ base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN), |
+ base::Bind(&v8::Task::Run, base::Owned(task))); |
} |
void V8Platform::CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task) { |