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

Side by Side Diff: google_apis/gaia/gaia_auth_util.cc

Issue 2184913002: google_apis: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698