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

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

Issue 2775553004: [WebPayments] Implementing Profile filter and dedupe (Closed)
Patch Set: Adding omitted files Created 3 years, 9 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/form_group.cc
diff --git a/components/autofill/core/browser/form_group.cc b/components/autofill/core/browser/form_group.cc
index 417f08a9043b10b0fefafe85c51968dbf3b49d3e..c10e425518ed09be4cc7e5e12b9f863b5c91459c 100644
--- a/components/autofill/core/browser/form_group.cc
+++ b/components/autofill/core/browser/form_group.cc
@@ -57,4 +57,12 @@ bool FormGroup::SetInfo(const AutofillType& type,
return true;
}
+bool FormGroup::HasInfo(ServerFieldType type) const {
+ return !GetRawInfo(type).empty();
+}
+
+bool FormGroup::HasInfo(const AutofillType& type) const {
+ return !GetRawInfo(type.GetStorableType()).empty();
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698