| Index: components/autofill/core/browser/autofill_assistant.cc
|
| diff --git a/components/autofill/core/browser/autofill_assistant.cc b/components/autofill/core/browser/autofill_assistant.cc
|
| index b7f00b5a30c771fef84c59c48faae03623e0dbe9..63fbd6252c1199f688612fa840105aa7bd5c28cb 100644
|
| --- a/components/autofill/core/browser/autofill_assistant.cc
|
| +++ b/components/autofill/core/browser/autofill_assistant.cc
|
| @@ -26,7 +26,7 @@ void AutofillAssistant::Reset() {
|
| }
|
|
|
| bool AutofillAssistant::CanShowCreditCardAssist(
|
| - const std::vector<FormStructure*>& form_structures) {
|
| + const std::vector<std::unique_ptr<FormStructure>>& form_structures) {
|
| if (form_structures.empty() || credit_card_form_data_ != nullptr ||
|
| !IsAutofillCreditCardAssistEnabled() ||
|
| !autofill_manager_->client()->IsContextSecure(
|
| @@ -34,7 +34,7 @@ bool AutofillAssistant::CanShowCreditCardAssist(
|
| return false;
|
| }
|
|
|
| - for (FormStructure* cur_form : base::Reversed(form_structures)) {
|
| + for (auto& cur_form : base::Reversed(form_structures)) {
|
| if (cur_form->IsCompleteCreditCardForm()) {
|
| credit_card_form_data_.reset(new FormData(cur_form->ToFormData()));
|
| break;
|
|
|