Commit 81b0e3d9 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Check InfobarIOS InfobarType instead of InfobarUIDelegate

InfobarUIDelegate is not being used with the Infobar migration to
Overlays. Thus, looking up an InfobarIOS's Infobar type should
use its new infobar_type() property.

Bug: 1121143
Change-Id: I0d340939d038d366eaf0ad631503cae9188dd1bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373665
Auto-Submit: Chris Lu <thegreenfrog@chromium.org>
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801261}
parent b6128848
...@@ -379,7 +379,7 @@ constexpr int kNotifyAutoSigninDuration = 3; // seconds ...@@ -379,7 +379,7 @@ constexpr int kNotifyAutoSigninDuration = 3; // seconds
for (size_t i = 0; i < count; i++) { for (size_t i = 0; i < count; i++) {
InfoBarIOS* infobar = InfoBarIOS* infobar =
static_cast<InfoBarIOS*>(infoBarManager->infobar_at(i)); static_cast<InfoBarIOS*>(infoBarManager->infobar_at(i));
if (infobar->InfobarUIDelegate().infobarType == infobarType && if (infobar->infobar_type() == infobarType &&
infobar->skip_banner() == manual) infobar->skip_banner() == manual)
return infobar; return infobar;
} }
......
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