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

Unified Diff: components/scheduler/child/task_queue_manager.cc

Issue 987193002: Redirect the MessageLoop's task runner to the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another API update. Created 5 years, 5 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: components/scheduler/child/task_queue_manager.cc
diff --git a/components/scheduler/child/task_queue_manager.cc b/components/scheduler/child/task_queue_manager.cc
index 71b2d86e3ddc8e98d27c8ab39cc180e83618cd30..043049ac7b90a64a2532e0713bf392ec6db491d9 100644
--- a/components/scheduler/child/task_queue_manager.cc
+++ b/components/scheduler/child/task_queue_manager.cc
@@ -510,6 +510,9 @@ TaskQueueManager::TaskQueueManager(
base::Bind(&TaskQueueManager::DoWork, weak_factory_.GetWeakPtr(), true);
do_work_from_other_thread_closure_ =
base::Bind(&TaskQueueManager::DoWork, weak_factory_.GetWeakPtr(), false);
+
+ if (task_queue_count)
+ main_task_runner->SetDefaultTaskRunner(Queue(0));
alex clarke (OOO till 29th) 2015/07/08 13:30:53 It's currently true that task #0 is the default qu
Sami 2015/07/08 18:45:07 Good point. I thought about this a bit an realized
}
TaskQueueManager::~TaskQueueManager() {

Powered by Google App Engine
This is Rietveld 408576698