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

Unified Diff: components/scheduler/child/nestable_task_runner_for_test.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/nestable_task_runner_for_test.cc
diff --git a/components/scheduler/child/nestable_task_runner_for_test.cc b/components/scheduler/child/nestable_task_runner_for_test.cc
index 5bcfde816db70f3286bea0b98629a55396cab686..74357f2aecc57a6ae6aa9301c9eb7d5f1dbc5c52 100644
--- a/components/scheduler/child/nestable_task_runner_for_test.cc
+++ b/components/scheduler/child/nestable_task_runner_for_test.cc
@@ -34,6 +34,11 @@ void NestableTaskRunnerForTest::WrapTask(
WillProcessTask(*wrapped_task));
}
+void NestableTaskRunnerForTest::SetDefaultTaskRunner(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
+ default_task_runner_ = task_runner.Pass();
+}
+
bool NestableTaskRunnerForTest::PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,

Powered by Google App Engine
This is Rietveld 408576698