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

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

Issue 1814883002: [Autofill] Check for full state name and abbreviation when determining types to upload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 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/autofill_field.cc
diff --git a/components/autofill/core/browser/autofill_field.cc b/components/autofill/core/browser/autofill_field.cc
index 7ec8ebefa5498b816026a07126cc464a92de25e5..a8ad28cf17fd4704f3061b74ae0b3e00c9a4a438 100644
--- a/components/autofill/core/browser/autofill_field.cc
+++ b/components/autofill/core/browser/autofill_field.cc
@@ -139,7 +139,8 @@ bool FillNumericSelectControl(int value,
bool FillStateSelectControl(const base::string16& value,
FormFieldData* field) {
- base::string16 full, abbreviation;
+ base::string16 full;
+ base::string16 abbreviation;
state_names::GetNameAndAbbreviation(value, &full, &abbreviation);
// Try an exact match of the abbreviation first.

Powered by Google App Engine
This is Rietveld 408576698