[CCT-Reparenting] Remove tab observer when the tab is removed from model
In tab reparenting, we never close but only remove the tab from the model. During this process, both tab observer and also the metrics observer was still kept, which leaked over some custom tab features into the tab even after it was reparented. This removes the observers and fixes the related issues. TEST=CustomTabActivityTest#testTabReparentingBasic BUG=669169 Review-Url: https://codereview.chromium.org/2539643002 Cr-Commit-Position: refs/heads/master@{#435028}
Showing
Please register or sign in to comment