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

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

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a clone method to WebTaskRunner which lets us solve the lifetime issue. Created 5 years, 3 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/web_task_runner_impl.cc
diff --git a/components/scheduler/child/web_task_runner_impl.cc b/components/scheduler/child/web_task_runner_impl.cc
index e108fc2b21ee5f46a9f2cdd72e4ac640c866f9ae..79ec9fe0f6cb48cee65eeca56025634986e5264f 100644
--- a/components/scheduler/child/web_task_runner_impl.cc
+++ b/components/scheduler/child/web_task_runner_impl.cc
@@ -47,4 +47,8 @@ void WebTaskRunnerImpl::postDelayedTask(
base::TimeDelta::FromMillisecondsD(delayMs));
}
+blink::WebTaskRunner* WebTaskRunnerImpl::clone() {
+ return new WebTaskRunnerImpl(task_runner_);
+}
+
} // namespace scheduler

Powered by Google App Engine
This is Rietveld 408576698