Commit fb7524e3 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Call isInfobarAccepted in modalInfobarButtonWasAccepted

This matches the behavior in bannerInfobarButtonWasPressed

Bug: 1019508
Change-Id: I32c4c43ec39da89067abd0122cd08ba0286b8469
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894411Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711734}
parent 8c7d1784
......@@ -290,8 +290,10 @@ const CGFloat kiPadBannerOverlapWithOmnibox = 10.0;
- (void)modalInfobarButtonWasAccepted:(id)sender {
[self performInfobarAction];
[self.badgeDelegate infobarWasAccepted:self.infobarType
forWebState:self.webState];
if ([self isInfobarAccepted]) {
[self.badgeDelegate infobarWasAccepted:self.infobarType
forWebState:self.webState];
}
[self dismissInfobarModal:sender animated:YES completion:nil];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment