Commit 8ff7263c authored by rogerta@chromium.org's avatar rogerta@chromium.org

When comparing emails in the one click signin helper, use the existing utility

function to compare emails instead of doing a string compare.

BUG=244408

Review URL: https://chromiumcodereview.appspot.com/15896026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204023 0039d316-1c4b-4281-b951-d872f2087c98
parent dfa39df3
......@@ -1184,7 +1184,7 @@ void OneClickSigninHelper::DidStopLoading(
std::string last_email =
profile->GetPrefs()->GetString(prefs::kGoogleServicesLastUsername);
if (!last_email.empty() && last_email != email_) {
if (!last_email.empty() && !gaia::AreEmailsSame(last_email, email_)) {
// If the new email address is different from the email address that
// just signed in, show a confirmation dialog.
......
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