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

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

Issue 7120005: Simplify Autofill Scanner semantics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/autofill/credit_card_field.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/phone_field.cc
diff --git a/chrome/browser/autofill/phone_field.cc b/chrome/browser/autofill/phone_field.cc
index 58a7fc885a0d7b4d0f0c8fdf1980b5c507cba131..064dfc62663d1ff4c2b628bf0ab5dca5919da456 100644
--- a/chrome/browser/autofill/phone_field.cc
+++ b/chrome/browser/autofill/phone_field.cc
@@ -263,7 +263,6 @@ bool PhoneField::ParseInternal(PhoneField *phone_field,
for (size_t i = 0; i < arraysize(phone_field_grammars_); ++i) {
memset(parsed_fields, 0, sizeof(parsed_fields));
- scanner->Rewind();
scanner->SaveCursor();
// Attempt to parse according to the next grammar.
@@ -300,6 +299,8 @@ bool PhoneField::ParseInternal(PhoneField *phone_field,
scanner->Rewind();
return false; // Tried through all the possibilities - did not match.
}
+
+ scanner->Rewind();
}
if (!parsed_fields[FIELD_PHONE]) {
« no previous file with comments | « chrome/browser/autofill/credit_card_field.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698