Descriptionash::ShelfView: CHECK against potentially bad static_casts.
There are a number of static downcasts in ShelfView that are *probably*
correct, but there is no clear proof that they are casting to the
correct type. This patch adds explicit CHECKs before every static_cast
to ensure that we are not casting from an incompatible dynamic type.
drag_view_ now has type ShelfButton*, so it is downcast on assignment,
rather than on many of its uses.
BUG=418460
Committed: https://crrev.com/1373851514d52a205024caec9f26cc61a94f0fc2
Cr-Commit-Position: refs/heads/master@{#297335}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|