Index: third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp |
diff --git a/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp b/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp |
index 8fba292281613a4893fe91b271437d0193af6054..a189e3f75d8cc9d579875fe89515af856db3df85 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp |
+++ b/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp |
@@ -216,7 +216,7 @@ TEST(CancellableTaskFactoryTest, GarbageCollectedWeak) |
GCObject* object = new GCObject(); |
std::unique_ptr<WebTaskRunner::Task> task = wrapUnique(object->m_factory->cancelAndCreate()); |
object = nullptr; |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
task->run(); |
// The owning object will have been GCed and the task will have |
// lost its weak reference. Verify that it wasn't invoked. |