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

Unified Diff: components/autofill/core/browser/autofill_assistant.cc

Issue 2403773002: Remove stl_util's STLDeleteContainerPointers from autofill. (Closed)
Patch Set: rebase Created 4 years, 2 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/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;
« no previous file with comments | « components/autofill/core/browser/autofill_assistant.h ('k') | components/autofill/core/browser/autofill_assistant_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698