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

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

Issue 2972973002: [Payments] When saving an edited address in editor, clear data first. (Closed)
Patch Set: addressed comments Created 3 years, 5 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
« no previous file with comments | « components/autofill/core/browser/autofill_profile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_profile.cc
diff --git a/components/autofill/core/browser/autofill_profile.cc b/components/autofill/core/browser/autofill_profile.cc
index e54c9fdab7d779a7538e5f10b9283c578f8b3754..35bc59046802fa12cf50b6bb841fbdaaa3c447a3 100644
--- a/components/autofill/core/browser/autofill_profile.cc
+++ b/components/autofill/core/browser/autofill_profile.cc
@@ -309,6 +309,14 @@ bool AutofillProfile::SetInfo(const AutofillType& type,
return form_group->SetInfo(type, trimmed_value, app_locale);
}
+void AutofillProfile::GetSupportedTypes(
+ ServerFieldTypeSet* supported_types) const {
+ FormGroupList info = FormGroups();
+ for (const auto* form_group : info) {
+ form_group->GetSupportedTypes(supported_types);
+ }
+}
+
bool AutofillProfile::IsEmpty(const std::string& app_locale) const {
ServerFieldTypeSet types;
GetNonEmptyTypes(app_locale, &types);
@@ -709,14 +717,6 @@ void AutofillProfile::RecordAndLogUse() {
RecordUse();
}
-void AutofillProfile::GetSupportedTypes(
- ServerFieldTypeSet* supported_types) const {
- FormGroupList info = FormGroups();
- for (const auto* form_group : info) {
- form_group->GetSupportedTypes(supported_types);
- }
-}
-
// static
void AutofillProfile::CreateInferredLabelsHelper(
const std::vector<AutofillProfile*>& profiles,
« no previous file with comments | « components/autofill/core/browser/autofill_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698