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

Unified Diff: chrome/browser/autofill/name_field.cc

Issue 7545003: Add ignore matching text for name field. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add ignore matching text in name field. Created 9 years, 5 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/autofill/name_field.cc
diff --git a/chrome/browser/autofill/name_field.cc b/chrome/browser/autofill/name_field.cc
index c295615e2fb83d42197160d337428258feefdd92..7d54700d57af0ae632ebb77bd47c2a814b118dad 100644
--- a/chrome/browser/autofill/name_field.cc
+++ b/chrome/browser/autofill/name_field.cc
@@ -150,9 +150,9 @@ FirstLastNameField* FirstLastNameField::ParseComponentNames(
// Allow name fields to appear in any order.
while (!scanner->IsEnd()) {
// Skip over any unrelated fields, e.g. "username" or "nickname".
- if (ParseField(scanner,
+ if (ParseFieldSpecifics(scanner,
l10n_util::GetStringUTF16(IDS_AUTOFILL_NAME_IGNORED_RE),
- NULL)) {
+ MATCH_DEFAULT | MATCH_SELECT, NULL)) {
Ilya Sherman 2011/08/03 07:27:26 nit: Please either indent to the parenthesis or by
continue;
}

Powered by Google App Engine
This is Rietveld 408576698