Commit bf64de7d authored by sczs's avatar sczs Committed by Commit Bot

[ios] Dismisses InfobarBanner in BVC’s viewWillDissapear

Bug: 973877
Change-Id: I546ad0782c578607ae8af99524804d07fc35577b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1660786
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#670276}
parent db7659d0
......@@ -1644,6 +1644,14 @@ NSString* const kBrowserViewControllerSnackbarCategory =
if (!self.presentedViewController)
activeWebState->SetKeepRenderProcessAlive(false);
}
// TODO(crbug.com/976411):This should probably move to the BannerVC once/if
// the dismiss event from BVC is observable.
if (IsInfobarUIRebootEnabled() &&
[self.infobarContainerCoordinator isPresentingInfobarBanner]) {
[self.infobarContainerCoordinator dismissInfobarBannerAnimated:NO
completion:nil];
}
[_bookmarkInteractionController dismissSnackbar];
[super viewWillDisappear:animated];
}
......
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