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

Unified Diff: third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 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: third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
diff --git a/third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h b/third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
index 3362c69b8e92646bc559abcd2cdf6cbff8a1f76c..40fc76c3995ebd9deffa10bd221a716efdbb1bb3 100644
--- a/third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
+++ b/third_party/WebKit/public/platform/scheduler/child/single_thread_idle_task_runner.h
@@ -30,7 +30,7 @@ namespace scheduler {
class SingleThreadIdleTaskRunner
: public base::RefCountedThreadSafe<SingleThreadIdleTaskRunner> {
public:
- typedef base::Callback<void(base::TimeTicks)> IdleTask;
+ typedef base::OnceCallback<void(base::TimeTicks)> IdleTask;
// Used to request idle task deadlines and signal posting of idle tasks.
class BLINK_PLATFORM_EXPORT Delegate {
@@ -62,11 +62,11 @@ class SingleThreadIdleTaskRunner
const char* tracing_category);
virtual void PostIdleTask(const tracked_objects::Location& from_here,
- const IdleTask& idle_task);
+ IdleTask idle_task);
virtual void PostNonNestableIdleTask(
const tracked_objects::Location& from_here,
- const IdleTask& idle_task);
+ IdleTask idle_task);
bool RunsTasksOnCurrentThread() const;

Powered by Google App Engine
This is Rietveld 408576698