Index: third_party/WebKit/Source/core/fetch/Resource.h |
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h |
index 5f864aed86d49718d86a8e218bca6bd6e2f2182b..7e63e3d97a83a7758492a4d316242e9d4768c61d 100644 |
--- a/third_party/WebKit/Source/core/fetch/Resource.h |
+++ b/third_party/WebKit/Source/core/fetch/Resource.h |
@@ -283,6 +283,7 @@ protected: |
// (ResourcePtrs and ResourceClients registering themselves) don't work in this case, so |
// have a separate internal protector). |
class InternalResourcePtr { |
+ STACK_ALLOCATED(); |
public: |
explicit InternalResourcePtr(Resource* resource) |
: m_resource(resource) |
@@ -296,7 +297,7 @@ protected: |
m_resource->deleteIfPossible(); |
} |
private: |
- Resource* m_resource; |
+ RawPtrWillBeMember<Resource> m_resource; |
}; |
void incrementProtectorCount() { m_protectorCount++; } |