[ios] Improves InfobarBanner queueing.
Currently we were using a NSDictionary to store all Coordinators, using the InfobarType as Key. The Problem is that there can be more than one Infobar with type InfobarTypeConfirm, this meant that we weren't keeping track of the Infobars correctly. Or this meant that the wrong Infobar would be removed on childCoordinatorStopped. This CL creates an Array to store all Infobars and a Dictionary only for Infobars with badges, in this case the type matters for the Badge Commands. Bug: 961343 Change-Id: If47b2da8c3158ab3c7e093f5b1673a40464ce3ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824073 Commit-Queue: Sergio Collazos <sczs@chromium.org> Reviewed-by:Peter Lee <pkl@chromium.org> Reviewed-by:
Chris Lu <thegreenfrog@chromium.org> Cr-Commit-Position: refs/heads/master@{#699954}
Showing
Please register or sign in to comment