[ios] Return early if Webstate is not valid in InfobarContainerMediator
If the webstate is nil or if it's not the active webstate, then it is likely that the BadgeTabHelper is not valid, so return early. This change also ensures that all InfobarCoordinator blocks use weakSelf in calls of InfobarContainerMediator Fixed: 1055908 Change-Id: Ic68ee9950ce928f1143981425cbac934057bbe64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2075300 Commit-Queue: Chris Lu <thegreenfrog@chromium.org> Reviewed-by:Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#745061}
Showing
Please register or sign in to comment