Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: google_apis/gaia/gaia_auth_util.cc

Issue 656283002: [session_manager] Move user session initialization code out of ExistingUserController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/user_flow.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_auth_util.cc
diff --git a/google_apis/gaia/gaia_auth_util.cc b/google_apis/gaia/gaia_auth_util.cc
index eba0d7b6724b85b5ae24f7ef4dbbaec7ebf7b2f9..c3cc764e8a988538b94fd3ac759b332aac91ad9c 100644
--- a/google_apis/gaia/gaia_auth_util.cc
+++ b/google_apis/gaia/gaia_auth_util.cc
@@ -25,8 +25,9 @@ std::string CanonicalizeEmailImpl(const std::string& email_address,
char at = '@';
base::SplitString(email_address, at, &parts);
if (parts.size() != 2U) {
- NOTREACHED() << "expecting exactly one @, but got " << parts.size()-1 <<
- " : " << email_address;
+ NOTREACHED() << "expecting exactly one @, but got "
+ << (parts.empty() ? 0 : parts.size() - 1)
+ << " : " << email_address;
} else {
if (change_googlemail_to_gmail && parts[1] == kGooglemailDomain)
parts[1] = kGmailDomain;
« no previous file with comments | « chrome/browser/chromeos/login/user_flow.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698