Chromium Code Reviews| Index: components/policy/core/common/policy_types.h |
| diff --git a/components/policy/core/common/policy_types.h b/components/policy/core/common/policy_types.h |
| index 07289ca3ba04690360a82ab1752e3fa2ae86bb75..fdc5bc718526136a74b86f59984559ba287068e2 100644 |
| --- a/components/policy/core/common/policy_types.h |
| +++ b/components/policy/core/common/policy_types.h |
| @@ -28,6 +28,27 @@ enum PolicyLevel { |
| POLICY_LEVEL_MANDATORY, |
| }; |
| +// The source of a policy indicates where its value is originating from. The |
| +// sources are ordered by priority (with weakest policy first). |
| +enum PolicySource { |
| + // The policy was set because the system is running in an enterprise |
|
bartfab (slow)
2015/09/18 08:58:01
Nit: s/the system is/we are/ ("the system" would s
fhorschig
2015/09/18 09:02:59
Done.
|
| + // environment. |
| + POLICY_SOURCE_ENTERPRISE_DEFAULT, |
| + |
| + // The policy was set by a cloud source. |
| + POLICY_SOURCE_CLOUD, |
| + |
| + // Any non-platform policy was overridden because the system is running in an |
|
bartfab (slow)
2015/09/18 08:58:01
Nit: s/the system is/we are/
fhorschig
2015/09/18 09:02:59
Done.
|
| + // enterprise environment. |
| + POLICY_SOURCE_ENTERPRISE_OVERRIDE, |
| + |
| + // The policy was set by a platform source. |
| + POLICY_SOURCE_PLATFORM, |
| + |
| + // Number of source types. Has to be the last element. |
| + POLICY_SOURCE_COUNT |
| +}; |
| + |
| } // namespace policy |
| #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ |