Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: components/policy/core/common/policy_types.h

Issue 1304843004: Add source column to chrome://policy showing the origins of policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed another test. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b4dd523355f6addc45d453a3184cf53a388a9d2d 100644
--- a/components/policy/core/common/policy_types.h
+++ b/components/policy/core/common/policy_types.h
@@ -28,6 +28,26 @@ 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 we are running in an enterprise environment.
+ POLICY_SOURCE_ENTERPRISE_DEFAULT,
+
+ // The policy was set by a cloud source.
+ POLICY_SOURCE_CLOUD,
+
+ // Any non-platform policy was overridden because we are running in an
+ // 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_

Powered by Google App Engine
This is Rietveld 408576698