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

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

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: s/base::ResetAndReturn/std::move/ Created 3 years, 9 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 ac97d4b2156e17fc360ba850d6b74dbf5f21a78d..192ec09c941f1ebf4b16f9f733ebeb3ea780124f 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
@@ -7,6 +7,7 @@
#include <deque>
+#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "platform/WebTaskRunner.h"
@@ -24,9 +25,7 @@ class FakeWebTaskRunner : public WebTaskRunner {
void setTime(double new_time);
// WebTaskRunner implementation:
- void postDelayedTask(const WebTraceLocation&,
- const base::Closure&,
- double) override;
+ void postDelayedTask(const WebTraceLocation&, base::Closure, double) override;
bool runsTasksOnCurrentThread() override;
double virtualTimeSeconds() const override;
double monotonicallyIncreasingVirtualTimeSeconds() const override;

Powered by Google App Engine
This is Rietveld 408576698