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

Unified Diff: components/password_manager/core/browser/credential_manager_pending_request_task.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 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: components/password_manager/core/browser/credential_manager_pending_request_task.cc
diff --git a/components/password_manager/core/browser/credential_manager_pending_request_task.cc b/components/password_manager/core/browser/credential_manager_pending_request_task.cc
index 9a9c48dbdb58c029c8f6001c76d69fc007229d6e..0469fa89669b7d07856c2d013aa0eaaf1cb3facc 100644
--- a/components/password_manager/core/browser/credential_manager_pending_request_task.cc
+++ b/components/password_manager/core/browser/credential_manager_pending_request_task.cc
@@ -27,7 +27,7 @@ void ReportAccountChooserMetrics(
const ScopedVector<autofill::PasswordForm>& local_results,
bool had_empty_username) {
std::vector<base::string16> usernames;
- for (const auto& form : local_results)
+ for (const auto* form : local_results)
usernames.push_back(form->username_value);
std::sort(usernames.begin(), usernames.end());
bool has_duplicates =
@@ -78,7 +78,7 @@ void CredentialManagerPendingRequestTask::OnGetPasswordStoreResults(
ScopedVector<autofill::PasswordForm> local_results;
ScopedVector<autofill::PasswordForm> affiliated_results;
ScopedVector<autofill::PasswordForm> federated_results;
- for (auto& form : results) {
+ for (auto*& form : results) {
// Ensure that the form we're looking at matches the password and
// federation filters provided.
if (!((form->federation_origin.unique() && include_passwords_) ||

Powered by Google App Engine
This is Rietveld 408576698