Index: third_party/WebKit/Source/platform/heap/GarbageCollected.h |
diff --git a/third_party/WebKit/Source/platform/heap/GarbageCollected.h b/third_party/WebKit/Source/platform/heap/GarbageCollected.h |
index 9225d1f49eb54da77a038adebb8ed1e95782b6c6..e0380d182ea2cf960d453d2a1fa40a150bce8f04 100644 |
--- a/third_party/WebKit/Source/platform/heap/GarbageCollected.h |
+++ b/third_party/WebKit/Source/platform/heap/GarbageCollected.h |
@@ -393,4 +393,12 @@ public: |
} // namespace blink |
+namespace WTF { |
+ |
+// Adoption is not needed nor wanted for RefCountedGarbageCollected<>-derived types. |
+template<typename T> |
+PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; |
+ |
+} // namespace WTF |
+ |
#endif |