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 39dcbba19b2dd9b5f87a81356ef1ed0c691c6b05..384eec6768980cf0aef433077b4bca8c97df24f4 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( |
@@ -35,7 +35,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; |