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 26fb40ecd68e119ba209c1419c7bffb23f2ea8b3..fbcde71210a65d2bd292b796948f7fb68b3d1e5b 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 |
@@ -25,7 +25,7 @@ namespace { |
void ReportAccountChooserMetrics( |
const ScopedVector<autofill::PasswordForm>& local_results) { |
std::vector<base::string16> usernames; |
- for (const auto& form : local_results) |
+ for (auto* form : local_results) |
usernames.push_back(form->username_value); |
std::sort(usernames.begin(), usernames.end()); |
bool has_empty_username = !usernames.empty() && usernames[0].empty(); |
@@ -77,7 +77,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_) || |