[iOS] Disable link when there is no account in the user consent
In the unified user consent dialog, if there is no Google account on the device, then the Settings should not be shown since the user cannot sign-in yet. Once an account is added the Settings link should visible and usable. A DCHECK and a comment has been added for -[UnifiedConsentViewController updateIdentityPickerViewWithAvatar:] to make sure -[UnifiedConsentViewController updateIdentityPickerViewWithUserFullName: email:] is always called before to set an avatar to the identity view. With the Settings link: https://drive.google.com/open?id=1NjIsfv47GP_y2yMtxAvQcqVqGF-20USb Without the Settings link: https://drive.google.com/open?id=1pD0QFHNjki1OoC1ztW6CgPfW6iLWOdZf Bug: 827072 Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet Change-Id: Ia4c90c5e85790f0b0b3baa8974a7abc87c1dbf26 Reviewed-on: https://chromium-review.googlesource.com/1070663 Commit-Queue: Jérôme Lebel <jlebel@chromium.org> Reviewed-by:Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#561530}
Showing
Please register or sign in to comment