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

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

Issue 1153763005: scheduler: Allow timer task to be nested (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/web_scheduler_impl.cc
diff --git a/components/scheduler/child/web_scheduler_impl.cc b/components/scheduler/child/web_scheduler_impl.cc
index 5218b9b257b0ba84c4b472124377bd7b4c425861..0a918759dfb2f718cbd6144d79fee9cf20da39fd 100644
--- a/components/scheduler/child/web_scheduler_impl.cc
+++ b/components/scheduler/child/web_scheduler_impl.cc
@@ -101,8 +101,7 @@ void WebSchedulerImpl::postTimerTask(
scoped_ptr<blink::WebThread::Task> scoped_task(task);
tracked_objects::Location location(web_location.functionName(),
web_location.fileName(), -1, nullptr);
- // Timer tasks should not run in a nested messageloop.
- timer_task_runner_->PostNonNestableDelayedTask(
+ timer_task_runner_->PostDelayedTask(
location,
base::Bind(&WebSchedulerImpl::runTask, base::Passed(&scoped_task)),
base::TimeDelta::FromMilliseconds(delayMs));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698