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

Unified Diff: third_party/WebKit/Source/platform/WebTaskRunner.cpp

Issue 2110363002: Rename SameThreadClosure to Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ExplicitWTFBind
Patch Set: Add WTF:: to Closure Created 4 years, 6 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/WebTaskRunner.cpp
diff --git a/third_party/WebKit/Source/platform/WebTaskRunner.cpp b/third_party/WebKit/Source/platform/WebTaskRunner.cpp
index 67a38bef8af6f8d0d56c9b1638266eb8293e68aa..40c83ae2580fb76b841d3234d864c9dd932a2bb1 100644
--- a/third_party/WebKit/Source/platform/WebTaskRunner.cpp
+++ b/third_party/WebKit/Source/platform/WebTaskRunner.cpp
@@ -10,7 +10,7 @@ class SameThreadTask : public WebTaskRunner::Task {
USING_FAST_MALLOC(SameThreadTask);
WTF_MAKE_NONCOPYABLE(SameThreadTask);
public:
- explicit SameThreadTask(std::unique_ptr<SameThreadClosure> closure)
+ explicit SameThreadTask(std::unique_ptr<WTF::Closure> closure)
: m_closure(std::move(closure))
{
}
@@ -21,7 +21,7 @@ public:
}
private:
- std::unique_ptr<SameThreadClosure> m_closure;
+ std::unique_ptr<WTF::Closure> m_closure;
};
class CrossThreadTask : public WebTaskRunner::Task {
@@ -52,12 +52,12 @@ void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, std::uniqu
postDelayedTask(location, new CrossThreadTask(std::move(task)), delayMs);
}
-void WebTaskRunner::postTask(const WebTraceLocation& location, std::unique_ptr<SameThreadClosure> task)
+void WebTaskRunner::postTask(const WebTraceLocation& location, std::unique_ptr<WTF::Closure> task)
{
postTask(location, new SameThreadTask(std::move(task)));
}
-void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, std::unique_ptr<SameThreadClosure> task, long long delayMs)
+void WebTaskRunner::postDelayedTask(const WebTraceLocation& location, std::unique_ptr<WTF::Closure> task, long long delayMs)
{
postDelayedTask(location, new SameThreadTask(std::move(task)), delayMs);
}

Powered by Google App Engine
This is Rietveld 408576698