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

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

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits 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
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 252f086813978c0c5c6185eb774e18df87e44f1f..760baf949eefda13c5982f8724d54d925a2bc382 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
@@ -292,6 +292,7 @@ void TaskQueueManager::DoWork(bool delayed) {
switch (ProcessTaskFromWorkQueue(work_queue, is_nested, &lazy_now)) {
case ProcessTaskResult::DEFERRED:
// If a task was deferred, try again with another task.
+ DCHECK(delegate_->IsNested());
Sami 2016/12/15 17:54:37 This change seems unrelated?
tdresser 2016/12/15 19:16:09 Done.
continue;
case ProcessTaskResult::EXECUTED:
break;

Powered by Google App Engine
This is Rietveld 408576698