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

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: add PerformPreLoginActions, PerformLoginFinishedActions methods 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
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..e30954ca71ec9ccca4e63c6a5ff10c052abb2e1a 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.size() ? parts.size() - 1 : parts.size())
Denis Kuznetsov (DE-MUC) 2014/10/20 13:38:59 Use 0 in else-case (it look weird otherwise). And
Nikita (slow) 2014/10/20 13:52:11 Done.
+ << " : " << email_address;
} else {
if (change_googlemail_to_gmail && parts[1] == kGooglemailDomain)
parts[1] = kGmailDomain;

Powered by Google App Engine
This is Rietveld 408576698