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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapTest.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/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 90cd7c54dd4f99d7441b4598d1cd2f80a554a2ae..328e00a9f544d521ccb5803c7254cbd47ac31bef 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -5251,16 +5251,16 @@ TEST(HeapTest, RegressNullIsStrongified)
TEST(HeapTest, Bind)
{
- std::unique_ptr<SameThreadClosure> closure = WTF::bind(static_cast<void (Bar::*)(Visitor*)>(&Bar::trace), wrapPersistent(Bar::create()), nullptr);
+ std::unique_ptr<WTF::Closure> closure = WTF::bind(static_cast<void (Bar::*)(Visitor*)>(&Bar::trace), wrapPersistent(Bar::create()), nullptr);
// OffHeapInt* should not make Persistent.
- std::unique_ptr<SameThreadClosure> closure2 = WTF::bind(&OffHeapInt::voidFunction, OffHeapInt::create(1));
+ std::unique_ptr<WTF::Closure> closure2 = WTF::bind(&OffHeapInt::voidFunction, OffHeapInt::create(1));
preciselyCollectGarbage();
// The closure should have a persistent handle to the Bar.
EXPECT_EQ(1u, Bar::s_live);
UseMixin::s_traceCount = 0;
Mixin* mixin = UseMixin::create();
- std::unique_ptr<SameThreadClosure> mixinClosure = WTF::bind(static_cast<void (Mixin::*)(Visitor*)>(&Mixin::trace), wrapPersistent(mixin), nullptr);
+ std::unique_ptr<WTF::Closure> mixinClosure = WTF::bind(static_cast<void (Mixin::*)(Visitor*)>(&Mixin::trace), wrapPersistent(mixin), nullptr);
preciselyCollectGarbage();
// The closure should have a persistent handle to the mixin.
EXPECT_EQ(1, UseMixin::s_traceCount);

Powered by Google App Engine
This is Rietveld 408576698