Description[Mac] Cleans up the StatusBubbleMac code.
This CL reduces unnecessary work in StatusBubbleMac and replaces it with some
DCHECKs to verify invariants. (The invariant here is that we set
kWindowSizeDeterminedLater once, when state is set to kBubbleHidden, and the
size stays that way until the bubble transitions to a different state. If that
invariant holds, then we don't need to constantly re-set the size for a hidden
bubble.)
BUG=None
TEST=No visible impact. Status bubble should continue to show, expand, and hide properly.
Committed: https://crrev.com/b62daf588fe52c461c8b2c09771dbb32fbfdbab6
Cr-Commit-Position: refs/heads/master@{#318928}
Patch Set 1 #Patch Set 2 : Crash fixes. #
Total comments: 6
Patch Set 3 : Review. #
Messages
Total messages: 11 (3 generated)
|