-
Jialiu Lin authored
1. Previously gaia::CanonicalizeEmail(..) didn't handle upper case gmail correctly. e.g.: CanonicalizeEmail("USER.NAME@GMAIL.COM") previously return "user.name@gmail.com". Instead it should return "username@gmail.com". 2. When input is not a valid email, instead of triggering NOTREACHED, it now returns the input in lower case. In this way, the downstream use of this method can be more flexible. Bug: 874050, 859622 Change-Id: I2aeeb30cb1cd69c65b96de0fdd3a8c00cb2f274e Reviewed-on: https://chromium-review.googlesource.com/1174909Reviewed-by:Roger Tawa <rogerta@chromium.org> Reviewed-by:
Jialiu Lin <jialiul@chromium.org> Commit-Queue: Jialiu Lin <jialiul@chromium.org> Cr-Commit-Position: refs/heads/master@{#583754}
766926fd