This change is ready for review,PTAL,thanks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
IOSChromeSavePasswordInfoBarDelegate* delegate = self.passwordDelegate;Early return if the delegate is null.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
IOSChromeSavePasswordInfoBarDelegate* delegate = self.passwordDelegate;Early return if the delegate is null.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (!_consumer || !self.config) {You can remove this check (since it is now integrated into `-passwordDelegate`).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
You can remove this check (since it is now integrated into `-passwordDelegate`).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
lgtm
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] Fix dangling raw_ptr to infobar delegate in password save modal
The raw_ptr ivar `delegate_` was assigned once in setConsumer: but never
cleared. If InfoBarIOS is destroyed while the modal is still visible,
the pointer becomes dangling.
Replace it with a computed property that retrieves the delegate through
the config on each call, so it returns nil when the infobar has been
destroyed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I did look in more detail, and while this remove a dangling pointer annotation, `config` is a `DefaultInfobarOverlayRequestConfig*` which is a C++ pointer and thus can be dangling, but the `@property` does use `raw_ptr<T>`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |