Index: chrome/browser/ui/sync/one_click_signin_helper.cc |
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.cc b/chrome/browser/ui/sync/one_click_signin_helper.cc |
index 59fc87c678ae878306ee373281f2b81215e00769..9f2546ed13ef51aea7b4d2d355323f56424fc234 100644 |
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc |
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc |
@@ -1184,7 +1184,7 @@ void OneClickSigninHelper::DidStopLoading( |
std::string last_email = |
profile->GetPrefs()->GetString(prefs::kGoogleServicesLastUsername); |
- if (!last_email.empty() && last_email != email_) { |
+ if (!gaia::AreEmailsSame(last_email, email_)) { |
bcwhite
2013/06/03 20:26:30
I believe you still need to exclude empty addresse
Roger Tawa OOO till Jul 10th
2013/06/04 14:01:25
Good catch! Fixed.
|
// If the new email address is different from the email address that |
// just signed in, show a confirmation dialog. |