Index: third_party/WebKit/Source/platform/scheduler/CancellableTaskFactory.h |
diff --git a/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactory.h b/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactory.h |
index 935ddadcd95d3ecdbc0d310d79c9a30a096fcfd1..5d8a597fa6308d679f2f46250c7543b320ffd6ea 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactory.h |
+++ b/third_party/WebKit/Source/platform/scheduler/CancellableTaskFactory.h |
@@ -40,7 +40,7 @@ public: |
template<typename T> |
static PassOwnPtr<CancellableTaskFactory> create(T* thisObject, void (T::*method)(), typename std::enable_if<IsGarbageCollectedType<T>::value>::type* = nullptr) |
{ |
- return adoptPtr(new CancellableTaskFactory(WTF::bind(method, AllowCrossThreadWeakPersistent<T>(thisObject)))); |
+ return adoptPtr(new CancellableTaskFactory(WTF::bind(method, CrossThreadWeakPersistentThisPointer<T>(thisObject)))); |
} |
template<typename T> |