| Index: components/password_manager/core/browser/password_manager.cc
|
| diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc
|
| index dc06e20c4e8d73bb9c0a8fd03124d6a5b86714f6..e7d265aad84150069b0afe6de476c0b66b5ebc41 100644
|
| --- a/components/password_manager/core/browser/password_manager.cc
|
| +++ b/components/password_manager/core/browser/password_manager.cc
|
| @@ -829,19 +829,17 @@ void PasswordManager::ProcessAutofillPredictions(
|
| for (const autofill::FormStructure* form : forms) {
|
| if (logger)
|
| logger->LogFormStructure(Logger::STRING_SERVER_PREDICTIONS, *form);
|
| - for (std::vector<autofill::AutofillField*>::const_iterator field =
|
| - form->begin();
|
| - field != form->end(); ++field) {
|
| + for (const auto& field : *form) {
|
| autofill::PasswordFormFieldPredictionType prediction_type;
|
| - if (ServerTypeToPrediction((*field)->server_type(), &prediction_type)) {
|
| - predictions[form->ToFormData()][*(*field)] = prediction_type;
|
| + if (ServerTypeToPrediction(field->server_type(), &prediction_type)) {
|
| + predictions[form->ToFormData()][*field] = prediction_type;
|
| }
|
| // Certain fields are annotated by the browsers as "not passwords" i.e.
|
| // they should not be treated as passwords by the Password Manager.
|
| - if ((*field)->form_control_type == "password" &&
|
| + if (field->form_control_type == "password" &&
|
| IsPredictedTypeNotPasswordPrediction(
|
| - (*field)->Type().GetStorableType())) {
|
| - predictions[form->ToFormData()][*(*field)] =
|
| + field->Type().GetStorableType())) {
|
| + predictions[form->ToFormData()][*field] =
|
| autofill::PREDICTION_NOT_PASSWORD;
|
| }
|
| }
|
|
|