heap: Forbid inheriting from more containers
Inheriting from Heap* containers is dangerous because of missing virtual destructors and trace methods. This only leaves HeapHashSet as container that can be inherited from, which has one actual use in production code. Bug: 1056170 Change-Id: I66a301754adb4d970ccc631f1113edcb915c3abc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2589855Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#836765}
Showing
This diff is collapsed.
Please register or sign in to comment