[ios] Fixes UserSettingsDisc presentation whenever a Message is present.
If a Message Banner is being presented and the user taps on its picture/ initial letter Disc, the settings screen wouldn't be presented. This happens because BVC is actually not the presenter VC and it can't dismiss the Banner. This CL uses the existent functionality for showGoogleServicesSettingsFromViewController where BVC is used instead of the parameter VC. This also takes us closer to not sending a VC through the dispatcher. It also removes a DCHECK since a presentedVC should leave that decision to the presenterVC. This is something we currently lack and I hope to work on this after Messages. I didn't add an integration test since we don't have a good way to trigger an Infobar on NTP in an integration test. Bug: 961343 Change-Id: I85ea8047f5b55abd6e5606b4046d7dd7ad158625 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1834206 Commit-Queue: Sergio Collazos <sczs@chromium.org> Reviewed-by:Mark Cogan <marq@chromium.org> Cr-Commit-Position: refs/heads/master@{#702011}
Showing
Please register or sign in to comment