Add missing components/policy build dependencies

Generated files in components/policy used header files that
they didn't depend on. This oversight caused errors when running
gn check --check-generated (brand new gn feature!)

For instance:
ERROR at //out/Default/gen/components/policy/policy_constants.h:14:11: Include not allowed.
#include "components/policy/core/common/policy_details.h"
It is not in any dependency of
The include file is in the target(s):
which should somehow be reachable.

This CL fixes those errors by listing/allowing necessary dependencies.

An alternative would be to extract policy_details.h and policy_map.h
into a new build target, including everything they depend on.
I didn't investigate how much work that is because of time

Bug: 938893
Change-Id: I69775047ae70f15138ad0754f4c4d51bd02c7530
Commit-Queue: Daniel Bratell <>
Reviewed-by: Lutz Justen <>
Cr-Commit-Position: refs/heads/master@{#644380}
2 files changed