Properly destroy TabModelSelectorTabObserver in TabGroupUiMediator
Currently, when the activity is destroyed and re-created due to dark/light mode switching, the TabModelSelectorTabObserver in TabGroupUiMediator is not properly destroyed. This CL fixes this issue by destroying it when tab is detached from activity. Bug: 1087826 Change-Id: Ia11138923cb9d4e16e2ce35db18ca74afa50412f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2227890Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#774692}
Showing
Please register or sign in to comment