Fix tab sharing infobar layout when the shared tab is untitled.
Previously an empty shared tab name would indicate that the infobar being constructed is for the shared tab. - Layout for the shared tab: Sharing this tab to |app_name| [Stop] - Layout for all other tabs: Sharing |shared_tab_name| to |app_name| [Stop] [Share this tab instead] However, sometimes the shared tab name can be empty (see bug), leading to incorrect infobars layout. Don't rely on the shared tab name for infobar construction, use a separate parameter. When the shared tab is untitled, create infobars for non-shared tabs using this layout: Sharing a tab to |app_name| [Stop] [Share this tab instead] Bug: 1011379 Change-Id: Iedf288060d20b8a97a4c769d83a83e74ac057bd4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2023828 Commit-Queue: Marina Ciocea <marinaciocea@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Reviewed-by:
Guido Urdaneta <guidou@chromium.org> Cr-Commit-Position: refs/heads/master@{#736290}
Showing
Please register or sign in to comment