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

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

Issue 2812263003: Revert of Use TaskScheduler instead of WorkerPool in BackgroundTaskRunner.cpp (Closed)
Patch Set: rebase Created 3 years, 8 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 0a3e6f98cbc52062f8317470f52489efabb72b1e..7f865c40931f16b04686603da1163317481adeeb 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/task_scheduler/post_task.h"
+#include "base/threading/worker_pool.h"
#include "public/platform/WebTraceLocation.h"
namespace blink {
@@ -13,11 +13,8 @@ namespace blink {
void BackgroundTaskRunner::PostOnBackgroundThread(
const WebTraceLocation& location,
std::unique_ptr<CrossThreadClosure> closure) {
- base::PostTaskWithTraits(
- location,
- base::TaskTraits().WithShutdownBehavior(
- base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN),
- ConvertToBaseCallback(std::move(closure)));
+ base::WorkerPool::PostTask(
+ location, ConvertToBaseCallback(std::move(closure)), false /* ignored */);
}
} // 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