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

Unified Diff: third_party/WebKit/public/platform/WebTaskRunner.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/WebTaskRunner.h
diff --git a/third_party/WebKit/public/platform/WebTaskRunner.h b/third_party/WebKit/public/platform/WebTaskRunner.h
index fa2705bc49e088362cb6c46bc38348368cf6ccf8..3668a3b004164be4aff85b2639ea88f824d06403 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -42,7 +42,7 @@ public:
// Schedule a task to be run after |delayMs| on the the associated WebThread.
// Can be called from any thread.
- virtual void postDelayedTask(const WebTraceLocation&, const base::Closure&, double delayMs) = 0;
+ virtual void postDelayedTask(const WebTraceLocation&, base::OnceClosure, double delayMs) = 0;
// Returns a clone of the WebTaskRunner.
virtual std::unique_ptr<WebTaskRunner> clone() = 0;

Powered by Google App Engine
This is Rietveld 408576698