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

Unified Diff: third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp

Issue 2543723005: Remove MainThreadTaskRunner (Closed)
Patch Set: rebase Created 4 years 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 | « third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
diff --git a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
index 377d45d08e1b472976f4627f60a5a6de55a19878..13ddafcdee3bb973b8c7ad690707f66af96ce1b5 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
@@ -29,13 +29,13 @@ WebTaskRunner* TaskRunnerHelper::get(TaskType type, LocalFrame* frame) {
case TaskType::UnshippedPortMessage:
case TaskType::Timer:
case TaskType::Internal:
+ case TaskType::Unspecified:
return frame ? frame->frameScheduler()->timerTaskRunner()
: Platform::current()->currentThread()->getWebTaskRunner();
case TaskType::Networking:
return frame ? frame->frameScheduler()->loadingTaskRunner()
: Platform::current()->currentThread()->getWebTaskRunner();
case TaskType::Unthrottled:
- case TaskType::Unspecified:
return frame ? frame->frameScheduler()->unthrottledTaskRunner()
: Platform::current()->currentThread()->getWebTaskRunner();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/MainThreadTaskRunnerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698