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 "google_apis/gaia/gaia_auth_util.h" | 5 #include "google_apis/gaia/gaia_auth_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 std::string gaia_id; | 162 std::string gaia_id; |
163 // ListAccounts must also return the Gaia Id. | 163 // ListAccounts must also return the Gaia Id. |
164 if (account->GetString(10, &gaia_id) && !gaia_id.empty()) { | 164 if (account->GetString(10, &gaia_id) && !gaia_id.empty()) { |
165 ListedAccount listed_account; | 165 ListedAccount listed_account; |
166 listed_account.email = CanonicalizeEmail(email); | 166 listed_account.email = CanonicalizeEmail(email); |
167 listed_account.gaia_id = gaia_id; | 167 listed_account.gaia_id = gaia_id; |
168 listed_account.valid = is_email_valid != 0; | 168 listed_account.valid = is_email_valid != 0; |
169 listed_account.signed_out = signed_out != 0; | 169 listed_account.signed_out = signed_out != 0; |
170 listed_account.raw_email = email; | 170 listed_account.raw_email = email; |
171 auto list = listed_account.signed_out ? signed_out_accounts : | 171 auto* list = |
172 accounts; | 172 listed_account.signed_out ? signed_out_accounts : accounts; |
173 if (list) | 173 if (list) |
174 list->push_back(listed_account); | 174 list->push_back(listed_account); |
175 } | 175 } |
176 } | 176 } |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 return true; | 180 return true; |
181 } | 181 } |
182 | 182 |
183 } // namespace gaia | 183 } // namespace gaia |
OLD | NEW |