| Index: third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
|
| diff --git a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
|
| index 0092784df12a0a1fedd27b4ce8a5074519ab8fc4..ae5b309f0985a5efde51455af3abc95f11c7e438 100644
|
| --- a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
|
| +++ b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
|
| @@ -4,23 +4,16 @@
|
|
|
| #include "platform/threading/BackgroundTaskRunner.h"
|
|
|
| -#include "base/bind.h"
|
| -#include "base/bind_helpers.h"
|
| #include "base/location.h"
|
| #include "base/threading/worker_pool.h"
|
| #include "public/platform/WebTraceLocation.h"
|
|
|
| namespace blink {
|
|
|
| -static void RunBackgroundTask(CrossThreadClosure* closure)
|
| -{
|
| - (*closure)();
|
| -}
|
| -
|
| void BackgroundTaskRunner::postOnBackgroundThread(const WebTraceLocation& location, std::unique_ptr<CrossThreadClosure> closure, TaskSize taskSize)
|
| {
|
| tracked_objects::Location baseLocation(location.functionName(), location.fileName(), 0, nullptr);
|
| - base::WorkerPool::PostTask(baseLocation, base::Bind(&RunBackgroundTask, base::Owned(closure.release())), taskSize == TaskSizeLongRunningTask);
|
| + base::WorkerPool::PostTask(baseLocation, convertToBaseCallback(std::move(closure)), taskSize == TaskSizeLongRunningTask);
|
| }
|
|
|
| } // namespace blink
|
|
|