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

Unified Diff: components/scheduler/child/worker_scheduler.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: Rebased. 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
« no previous file with comments | « components/scheduler/child/worker_scheduler.h ('k') | components/scheduler/child/worker_scheduler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/worker_scheduler.cc
diff --git a/components/scheduler/child/worker_scheduler.cc b/components/scheduler/child/worker_scheduler.cc
index a1ddc98810593432c8e1562ce8bc396172102843..87ab8a1c294c522319f42d5e2cfc6023cf722971 100644
--- a/components/scheduler/child/worker_scheduler.cc
+++ b/components/scheduler/child/worker_scheduler.cc
@@ -7,7 +7,7 @@
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "components/scheduler/child/null_worker_scheduler.h"
-#include "components/scheduler/child/scheduler_message_loop_delegate.h"
+#include "components/scheduler/child/scheduler_task_runner_delegate.h"
#include "components/scheduler/child/worker_scheduler_impl.h"
#include "components/scheduler/common/scheduler_switches.h"
@@ -21,13 +21,12 @@ WorkerScheduler::~WorkerScheduler() {
// static
scoped_ptr<WorkerScheduler> WorkerScheduler::Create(
- base::MessageLoop* message_loop) {
+ scoped_refptr<SchedulerTaskRunnerDelegate> main_task_runner) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kDisableBlinkScheduler)) {
return make_scoped_ptr(new NullWorkerScheduler());
} else {
- return make_scoped_ptr(new WorkerSchedulerImpl(
- SchedulerMessageLoopDelegate::Create(message_loop)));
+ return make_scoped_ptr(new WorkerSchedulerImpl(main_task_runner.Pass()));
}
}
« no previous file with comments | « components/scheduler/child/worker_scheduler.h ('k') | components/scheduler/child/worker_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698