OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/net/gaia/gaia_auth_util.h" | 5 #include "google_apis/gaia/gaia_auth_util.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 | 12 |
13 namespace gaia { | 13 namespace gaia { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 std::string email = CanonicalizeEmail(email_address); | 52 std::string email = CanonicalizeEmail(email_address); |
53 size_t separator_pos = email.find('@'); | 53 size_t separator_pos = email.find('@'); |
54 if (separator_pos != email.npos && separator_pos < email.length() - 1) | 54 if (separator_pos != email.npos && separator_pos < email.length() - 1) |
55 return email.substr(separator_pos + 1); | 55 return email.substr(separator_pos + 1); |
56 else | 56 else |
57 NOTREACHED() << "Not a proper email address: " << email; | 57 NOTREACHED() << "Not a proper email address: " << email; |
58 return std::string(); | 58 return std::string(); |
59 } | 59 } |
60 | 60 |
61 } // namespace gaia | 61 } // namespace gaia |
OLD | NEW |