| Index: ios/chrome/browser/infobars/confirm_infobar_controller.mm
|
| diff --git a/ios/chrome/browser/infobars/confirm_infobar_controller.mm b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
|
| index 8f3ac3cb8d19c2e07b37560ed2fae18b66381204..d4b2a94b13d76e42e7653bf2fefc8c5801741d68 100644
|
| --- a/ios/chrome/browser/infobars/confirm_infobar_controller.mm
|
| +++ b/ios/chrome/browser/infobars/confirm_infobar_controller.mm
|
| @@ -118,9 +118,10 @@ - (void)updateInfobarLabel:(InfoBarView*)view {
|
| base::ReplaceFirstSubstringAfterOffset(
|
| &messageText, 0, _confirmInfobarDelegate->GetLinkText(), msgLink);
|
|
|
| + __weak ConfirmInfoBarController* weakSelf = self;
|
| [view addLabel:base::SysUTF16ToNSString(messageText)
|
| action:^(NSUInteger tag) {
|
| - [self infobarLinkDidPress:tag];
|
| + [weakSelf infobarLinkDidPress:tag];
|
| }];
|
| } else {
|
| NSString* label =
|
|
|