Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1289)

Unified Diff: third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp

Issue 2914633002: Reland of Use TaskScheduler instead of WorkerPool in BackgroundTaskRunner.cpp (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/threading/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7f865c40931f16b04686603da1163317481adeeb..ea04b97b8fd27da87b0f51b2fc81337f9c20138e 100644
--- a/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
+++ b/third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
@@ -5,7 +5,7 @@
#include "platform/threading/BackgroundTaskRunner.h"
#include "base/location.h"
-#include "base/threading/worker_pool.h"
+#include "base/task_scheduler/post_task.h"
#include "public/platform/WebTraceLocation.h"
namespace blink {
@@ -13,8 +13,9 @@ namespace blink {
void BackgroundTaskRunner::PostOnBackgroundThread(
const WebTraceLocation& location,
std::unique_ptr<CrossThreadClosure> closure) {
- base::WorkerPool::PostTask(
- location, ConvertToBaseCallback(std::move(closure)), false /* ignored */);
+ base::PostTaskWithTraits(location,
+ {base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
+ ConvertToBaseCallback(std::move(closure)));
}
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/threading/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698