| 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 0867f573272c4f26db0dd7439ff2a177823715fa..9c72bac5eb1cc10b984964f104ec1cd9d4557705 100644
|
| --- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
|
| @@ -4968,7 +4968,7 @@ TEST(HeapTest, RegressNullIsStrongified)
|
|
|
| TEST(HeapTest, Bind)
|
| {
|
| - OwnPtr<SameThreadClosure> closure = bind(static_cast<void (Bar::*)(Visitor*)>(&Bar::trace), Bar::create(), unretained(static_cast<Visitor*>(0)));
|
| + OwnPtr<SameThreadClosure> closure = bind(static_cast<void (Bar::*)(Visitor*)>(&Bar::trace), retainedRef(Bar::create()), unretained(static_cast<Visitor*>(0)));
|
| // OffHeapInt* should not make Persistent.
|
| OwnPtr<SameThreadClosure> closure2 = bind(&OffHeapInt::voidFunction, OffHeapInt::create(1));
|
| preciselyCollectGarbage();
|
| @@ -4977,7 +4977,7 @@ TEST(HeapTest, Bind)
|
|
|
| UseMixin::s_traceCount = 0;
|
| Mixin* mixin = UseMixin::create();
|
| - OwnPtr<SameThreadClosure> mixinClosure = bind(static_cast<void (Mixin::*)(Visitor*)>(&Mixin::trace), mixin, unretained(static_cast<Visitor*>(0)));
|
| + OwnPtr<SameThreadClosure> mixinClosure = bind(static_cast<void (Mixin::*)(Visitor*)>(&Mixin::trace), retainedRef(mixin), unretained(static_cast<Visitor*>(0)));
|
| preciselyCollectGarbage();
|
| // The closure should have a persistent handle to the mixin.
|
| EXPECT_EQ(1, UseMixin::s_traceCount);
|
|
|