[Autofill] Shifted match field input types two bits to the right.
The MatchFieldTypes enum starts at 1<<2 instead of 1<<0 temporarily. Since the lowest two bits are used nowhere at the moment, and MatchFieldTypes will be shifted to the right once the PatternProvider is launched, we can shift the values in the JSON to the right, and shift them to the left only at load time in order to match the MatchFieldTypes enum. This CL also changes the compression algorithm from gzip to brotli, which saves about 18% space. Bug: 1140775 Change-Id: I171d4b67391da7b7934993fd7611a8acecce7fdd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489080Reviewed-by:Matthias Körber <koerber@google.com> Commit-Queue: Christoph Schwering <schwering@google.com> Cr-Commit-Position: refs/heads/master@{#820795}
Showing
This diff is collapsed.
Please register or sign in to comment