DescriptionApp list folder icons: Fixed off-by-one error.
Not actually visible to the user. It is not supposed to regenerate the
icon if the fifth or greater item changed. Due to an off-by-one error,
it would still regenerate the icon if the fifth item changed (which is
unnecessary).
NB: Tests are incoming (which would have caught this error).
Also harden a DCHECK (fixing a similar off-by-one error, and making it
into a CHECK because it would be a security issue if it failed).
BUG=425444
Committed: https://crrev.com/d1a3882d53bf5a765fb6b19fa0da54b265570e31
Cr-Commit-Position: refs/heads/master@{#302030}
Patch Set 1 #Patch Set 2 : Fixed bad DCHECK (off-by-one; and made into a CHECK). #Messages
Total messages: 7 (2 generated)
|