libchrome: Add preg_parser and registry_dict

preg_parser and registry_dict are used by authpolicy to fetch policy
from AD servers. Right now, a custom version of the two files is
checked into platform2 in Chromium OS. This CL puts the Chromium copy
of these files into libchrome, so that authpolicy can reuse this code.

Revision in chromium/src of added files:
Jan 10 2017, Chrome revision 57.0.2978.0, r442564

TEST=Compiles, policy lib is accessible by authpolicy code.

Change-Id: I221a73b50f58673369a5d1c28a1a742b28ed67a6
Commit-Ready: Lutz Justen <>
Tested-by: Lutz Justen <>
Reviewed-by: Dan Erat <>
12 files changed