Commit da79010c authored by Mohamad Ahmadi's avatar Mohamad Ahmadi Committed by Commit Bot

[AF] Don't sanitize or canonicalize email when getting AccountInfo in iOS

currently foo.bar@example.com gets converted to foobar@example.com
which gets saved as part of a server card' billing address. This is
different from the behavior in other platforms which results
in a nearly duplicate autofill profile getting synced across platforms.

Bug: 767445
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I23947f3ae1c7d35ada590e4165f5c2f52744b652
Reviewed-on: https://chromium-review.googlesource.com/804056Reviewed-by: default avatarMihai Sardarescu <msarda@chromium.org>
Reviewed-by: default avatarJérôme Lebel <jlebel@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521351}
parent 064b704d
......@@ -25,7 +25,7 @@ ProfileOAuth2TokenServiceIOSProvider::AccountInfo GetAccountInfo(
ProfileOAuth2TokenServiceIOSProvider::AccountInfo account_info;
if (identity) {
account_info.gaia = base::SysNSStringToUTF8([identity gaiaID]);
account_info.email = GetCanonicalizedEmailForIdentity(identity);
account_info.email = base::SysNSStringToUTF8([identity userEmail]);
}
return account_info;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment