CrOS Shelf: Minor widget activation simplification
In |ShelfWidget|, override |OnNativeWidgetActivationChanged| instead of |OnWidgetActivationChanged|. This achieves the same purpose, is more consistent with what |StatusAreaWidget| does, and avoids the need to add/remove widget observers. Note that this doesn't directly fix the linked bug but is a step in the right direction. No behavior change is expected from this change. Bug: 956080 Change-Id: Id4002b30197a5d6a97baccaaf1a912db39c45e9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643413Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Manu Cornet <manucornet@chromium.org> Cr-Commit-Position: refs/heads/master@{#666027}
Showing
Please register or sign in to comment