• sczs's avatar
    [ios] Improves InfobarBanner queueing. · edf567b3
    sczs authored
    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: default avatarPeter Lee <pkl@chromium.org>
    Reviewed-by: default avatarChris Lu <thegreenfrog@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#699954}
    edf567b3
infobar_container.h 891 Bytes