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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_common.cc

Issue 310463005: Fill in more name fields with requestAutocomplete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dumb test is dumb Created 6 years, 6 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: chrome/browser/ui/autofill/autofill_dialog_common.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_common.cc b/chrome/browser/ui/autofill/autofill_dialog_common.cc
index 2a3eeb2e634cef7b4873816f623a56181ec6587f..fd2cadce4333e02f406500bec99a1db0662909b2 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_common.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_common.cc
@@ -43,6 +43,10 @@ bool ServerTypeEncompassesFieldType(ServerFieldType type,
return autofill_type.GetStorableType() == ADDRESS_HOME_STREET_ADDRESS;
}
+ // First, middle and last name are parsed from full name.
+ if (field_type.group() == NAME || field_type.group() == NAME_BILLING)
+ return autofill_type.GetStorableType() == NAME_FULL;
+
return autofill_type.GetStorableType() == server_type;
}

Powered by Google App Engine
This is Rietveld 408576698