Commit 4d779c1c authored by Sébastien Séguin-Gagnon's avatar Sébastien Séguin-Gagnon Committed by Commit Bot

Make iOS ConfirmInforBars close if delegate LinkClicked returns true.

The delegate's documentation mentions that returning true should close
the infobar.

Bug: 954339
Change-Id: Ibbe75f180f828afebd72c4c7953045da9249b7c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574443Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Commit-Queue: sebsg <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652524}
parent 31bd4ef7
...@@ -163,7 +163,10 @@ typedef NS_ENUM(NSInteger, ConfirmInfoBarUITags) { ...@@ -163,7 +163,10 @@ typedef NS_ENUM(NSInteger, ConfirmInfoBarUITags) {
return; return;
DCHECK(tag == ConfirmInfoBarUITags::TITLE_LINK); DCHECK(tag == ConfirmInfoBarUITags::TITLE_LINK);
self.infoBarDelegate->LinkClicked(WindowOpenDisposition::NEW_FOREGROUND_TAB); if (self.infoBarDelegate->LinkClicked(
WindowOpenDisposition::NEW_FOREGROUND_TAB)) {
self.delegate->RemoveInfoBar();
}
} }
@end @end
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