+ if (!user.empty()) {
+#if defined(OS_IOS)
+ // Prior to M38, Chrome on iOS did not normalize the email before setting
+ // it in SigninManager. |AccountReconcilor| expects the authenticated email
+ // to be normalized as it used as an account identifier and is compared
+ // to the accounts available in the cookies.
+ user = gaia::CanonicalizeEmail(gaia::SanitizeEmail(user));
+#endif