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..b4aff0b2988dc23acddcc8bd1e4b5eedec89e5b1 100644 |
| --- a/components/policy/core/common/policy_types.h |
| +++ b/components/policy/core/common/policy_types.h |
| @@ -28,6 +28,25 @@ enum PolicyLevel { |
| POLICY_LEVEL_MANDATORY, |
| }; |
| +// The source of a policy indicates where its value is originating from. |
| +enum PolicySource { |
| + // If the policy was set by because session is an enterprise environment. |
|
bartfab (slow)
2015/09/16 15:58:41
Nit: "by" whom?
fhorschig
2015/09/17 11:20:42
Done.
|
| + POLICY_SOURCE_ENTERPRISE_DEFAULT, |
| + |
| + // If the policy was set by Chrome to an unchangeable value (e.g. to enforce |
| + // ash tray visibility in public sessions). |
| + POLICY_SOURCE_BUILT_IN, |
| + |
| + // If the policy was set by a platform source. |
| + POLICY_SOURCE_PLATFORM, |
| + |
| + // If the policy was set by a cloud source. |
| + POLICY_SOURCE_CLOUD, |
| + |
| + // Number of source types. Has to be the last element. |
| + POLICY_SOURCE_COUNT |
| +}; |
| + |
| } // namespace policy |
| #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_TYPES_H_ |