[Autofill] Migrated parsing to PatternProvider.
Autofill uses lots of hard-coded regexps for parsing. PatternProvider provides a cleaner API with page-language-dependent patterns. This CL migrates the existing parsing code to the new pattern provider in an equivalence-preserving way. The behaviour is only enabled if either of the following features is enabled: * kAutofillUsePageLanguageToSelectFieldParsingPatterns * kAutofillApplyNegativePatternsForFieldTypeDetectionHeuristics The code is not entirely ready for use because of an infrastructure issue: all relevant tests must mock a PatternProvider that synchronously loads the JSON. Otherwise they're prone to race conditions. In a follow-up CL we'll solve this issue. Change-Id: I235d2b599585522e1a1bea1cd25185ae209f5965 Bug: 1147624, 1147608 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2465847Reviewed-by:Matthias Körber <koerber@google.com> Reviewed-by:
Christoph Schwering <schwering@google.com> Commit-Queue: Matthias Körber <koerber@google.com> Cr-Commit-Position: refs/heads/master@{#826777}
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment