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

Unified Diff: third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 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/Source/platform/scheduler/test/fake_web_task_runner.h
diff --git a/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h b/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h
index 192ec09c941f1ebf4b16f9f733ebeb3ea780124f..ce82ab2367d3be8e81788790da3d6e17b5baee54 100644
--- a/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h
+++ b/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h
@@ -25,7 +25,9 @@ class FakeWebTaskRunner : public WebTaskRunner {
void setTime(double new_time);
// WebTaskRunner implementation:
- void postDelayedTask(const WebTraceLocation&, base::Closure, double) override;
+ void postDelayedTask(const WebTraceLocation&,
+ base::OnceClosure,
+ double) override;
bool runsTasksOnCurrentThread() override;
double virtualTimeSeconds() const override;
double monotonicallyIncreasingVirtualTimeSeconds() const override;
@@ -33,7 +35,7 @@ class FakeWebTaskRunner : public WebTaskRunner {
void runUntilIdle();
void advanceTimeAndRun(double delta_seconds);
- std::deque<std::pair<base::Closure, double>> takePendingTasksForTesting();
+ std::deque<std::pair<base::OnceClosure, double>> takePendingTasksForTesting();
private:
~FakeWebTaskRunner() override;

Powered by Google App Engine
This is Rietveld 408576698