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

Unified Diff: components/autofill/core/browser/form_structure.h

Issue 2773433002: Log observations of explicit UPI-VPA autocomplete hints. (Closed)
Patch Set: fix a nit 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
« no previous file with comments | « components/autofill/core/browser/field_types.h ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/form_structure.h
diff --git a/components/autofill/core/browser/form_structure.h b/components/autofill/core/browser/form_structure.h
index e984a5f1514a86057e894c0ef519bb716d186439..0047a3e55eda05ab987a26b68586fe7376b61b56 100644
--- a/components/autofill/core/browser/form_structure.h
+++ b/components/autofill/core/browser/form_structure.h
@@ -202,12 +202,18 @@ class FormStructure {
const GURL& target_url() const { return target_url_; }
- bool has_author_specified_types() { return has_author_specified_types_; }
+ bool has_author_specified_types() const {
+ return has_author_specified_types_;
+ }
- bool has_author_specified_sections() {
+ bool has_author_specified_sections() const {
return has_author_specified_sections_;
}
+ bool has_author_specified_upi_vpa_hint() const {
+ return has_author_specified_upi_vpa_hint_;
+ }
+
void set_upload_required(UploadRequired required) {
upload_required_ = required;
}
@@ -293,6 +299,10 @@ class FormStructure {
// author, via the autocomplete attribute.
bool has_author_specified_sections_;
+ // Whether the form includes a field that explicitly sets it autocomplete
+ // type to "upi-vpa".
+ bool has_author_specified_upi_vpa_hint_;
+
// Whether the form was parsed for autocomplete attribute, thus assigning
// the real values of |has_author_specified_types_| and
// |has_author_specified_sections_|.
« no previous file with comments | « components/autofill/core/browser/field_types.h ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698