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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() 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
Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
index 487b7f4889eb29a0d1b5c4633247ffed13d64bd7..7a2a92ba51c472d9280ae27fd3d37ef37fe01446 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
@@ -172,7 +172,7 @@ void TaskQueueManager::WakeUpReadyDelayedQueues(LazyNow* lazy_now) {
}
}
-void TaskQueueManager::OnBeginNestedMessageLoop() {
+void TaskQueueManager::OnBeginNestedRunLoop() {
// We just entered a nested message loop, make sure there's a DoWork posted or
// the system will grind to a halt.
{
@@ -184,7 +184,7 @@ void TaskQueueManager::OnBeginNestedMessageLoop() {
// When a nested message loop starts, task time observers may want to ignore
// the current task.
for (auto& observer : task_time_observers_)
- observer.OnBeginNestedMessageLoop();
+ observer.OnBeginNestedRunLoop();
delegate_->PostTask(FROM_HERE, immediate_do_work_closure_);
}

Powered by Google App Engine
This is Rietveld 408576698