CrOS Status area: Refactor collapse state logic
Split the |UpdateCollapseState| function in two: one const function |CalculateCollapseState| that returns a collapse state and the existing |UpdateCollapseState| that returns void. Also move the logic that alters the collapse state inside |CalculateButtonVisibilityForCollapsedState| out of that function and place it where it belongs. Bug: 1048119 Change-Id: I49eaa86f914cf9910b47afde698aa82c8eaa0aa8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040955 Commit-Queue: Manu Cornet <manucornet@chromium.org> Reviewed-by:Tetsui Ohkubo <tetsui@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#739036}
Showing
Please register or sign in to comment