Fix add tab misbehavior when there is no tab in dialog
Currently when user clicks to add a new tab in TabGridDialog, we try to create a new tab which takes the last tab in this group as parent. However, this can be problematic when all tabs are closed in this group. This CL fixes this issue. Bug: 987885 Change-Id: I1a6c83f9bfe8e55669ed5424cb7f096e277a91e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1726413Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: Yue Zhang <yuezhanggg@chromium.org> Cr-Commit-Position: refs/heads/master@{#682367}
Showing
Please register or sign in to comment