[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. Review URL: https://codereview.chromium.org/968263005 Cr-Commit-Position: refs/heads/master@{#318928}
Showing
Please register or sign in to comment