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

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

Issue 1583563003: [Autofill] Parse forms that have autocomplete attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed android compile and browser test Created 4 years, 11 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_field.cc
diff --git a/components/autofill/core/browser/autofill_field.cc b/components/autofill/core/browser/autofill_field.cc
index 648f4cb08a0ec51b4169af1625b64dbdae9f6212..6f0f39fe9795d8bec3426b26bdea7df3f10c1e32 100644
--- a/components/autofill/core/browser/autofill_field.cc
+++ b/components/autofill/core/browser/autofill_field.cc
@@ -423,12 +423,11 @@ base::string16 RemoveWhitespace(const base::string16& value) {
AutofillField::AutofillField()
: server_type_(NO_SERVER_DATA),
heuristic_type_(UNKNOWN_TYPE),
- html_type_(HTML_TYPE_UNKNOWN),
+ html_type_(HTML_TYPE_UNSPECIFIED),
html_mode_(HTML_MODE_NONE),
phone_part_(IGNORED),
credit_card_number_offset_(0),
- previously_autofilled_(false) {
-}
+ previously_autofilled_(false) {}
AutofillField::AutofillField(const FormFieldData& field,
const base::string16& unique_name)
@@ -436,12 +435,11 @@ AutofillField::AutofillField(const FormFieldData& field,
unique_name_(unique_name),
server_type_(NO_SERVER_DATA),
heuristic_type_(UNKNOWN_TYPE),
- html_type_(HTML_TYPE_UNKNOWN),
+ html_type_(HTML_TYPE_UNSPECIFIED),
html_mode_(HTML_MODE_NONE),
phone_part_(IGNORED),
credit_card_number_offset_(0),
- previously_autofilled_(false) {
-}
+ previously_autofilled_(false) {}
AutofillField::~AutofillField() {}
@@ -478,7 +476,7 @@ void AutofillField::SetHtmlType(HtmlFieldType type, HtmlFieldMode mode) {
}
AutofillType AutofillField::Type() const {
- if (html_type_ != HTML_TYPE_UNKNOWN)
+ if (html_type_ != HTML_TYPE_UNSPECIFIED)
return AutofillType(html_type_, html_mode_);
if (server_type_ != NO_SERVER_DATA) {

Powered by Google App Engine
This is Rietveld 408576698