Drop non-user policy in ConfigDirPolicyLoader on Chrome OS.
Device Policy that is read through ConfigDirPolicyLoader is ignored
yet it is still displayed on chrome://policy which is confusing. This
CL changes ConfigDirPolicyLoader to drop such policy already during
reading. (To be consistent, unknown policies loaded through
ConfigDirPolicyLoader are dropped as well.)
Some refactoring was required to fulfill the (now) conflicting
requirements of ConfigurationPolicyProviderTest for different
platforms.
BUG=None
Committed:
https://crrev.com/7cf59c2689f31a12f04cd0bf1a9ba6c69adc6066
Cr-Commit-Position: refs/heads/master@{#405756}