-
Kurt Horimoto authored
This agent observes the OverlayPresenters at the kInfobarBanner and kInfobarModal modalities in order to update InfobarBadgeTabHelper state for infobar overlay UI interaction. DidShowOverlay() and DidHideOverlay() are used to update the badge item's presentation state. This BrowserAgent performs some ofthe functionality previously implemented via the InfobarBadgeUIDelegate protocol, which can be deleted once kInfobarOverlayUI is enabled by default. This CL also updates FakeOverlayPresentationContext to execute the presentation callback in ShowOverlayUI(). Bug: 1030357 Change-Id: I153d1a7e7b220587a2582faf29d0942dad6ead2f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1973104 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:
Sergio Collazos <sczs@chromium.org> Reviewed-by:
Rohit Rao <rohitrao@chromium.org> Auto-Submit: Kurt Horimoto <kkhorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#726962}
51a608b8