[TabGroupModelFilter] Avoid setRootId during reset
https://crrev.com/c/1680953 sets root id of a tab when that tab is being added to the filter. However, when resetFilterState() is called after setRootId(), the root id of that tab can be overridden if its parent tab is still around. This CL fixes the issue above and adds unit tests. Change-Id: If8332053a4255f01a4f618f1b0367f9fd6729a8f Bug: 987153 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717558 Commit-Queue: Mei Liang <meiliang@chromium.org> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Reviewed-by:
Yusuf Ozuysal <yusufo@chromium.org> Cr-Commit-Position: refs/heads/master@{#681893}
Showing
Please register or sign in to comment