[Passwords] Fix DCHECK in GetSignonRealmWithProtocolExcluded
This change fixes a DCHECK in GetSignonRealmWithProtocolExcluded triggered when operating on credentials where the form's origin contained a port, but the signon_realm did not. For example. this can happen for federated credentials. Furthermore, this change improves the robustness of InvalidRealmCredentialCleaner and HttpCredentialCleaner by performing the HTTP / HTTPS check on the form's signon_realm instead of the origin. Bug: 871140 Change-Id: If4c531e0c8741db05f5e1b7565c5fd6026836ae6 Reviewed-on: https://chromium-review.googlesource.com/c/1345512 Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#610120}
Showing
Please register or sign in to comment