Index: chrome/browser/extensions/api/settings_private/prefs_util.h |
diff --git a/chrome/browser/extensions/api/settings_private/prefs_util.h b/chrome/browser/extensions/api/settings_private/prefs_util.h |
index e9e79096b23e162f24a96f8ebf520779d11f108b..fae5ba56e39a8a04daf9858f30fc0b6340d575eb 100644 |
--- a/chrome/browser/extensions/api/settings_private/prefs_util.h |
+++ b/chrome/browser/extensions/api/settings_private/prefs_util.h |
@@ -69,6 +69,24 @@ class PrefsUtil { |
// Returns whether |pref_name| corresponds to a pref whose type is URL. |
bool IsPrefTypeURL(const std::string& pref_name); |
+#if defined(OS_CHROMEOS) |
+ // Returns whether |pref_name| corresponds to a pref that is enterprise |
+ // managed. |
+ bool IsPrefEnterpriseManaged(const std::string& pref_name); |
+ |
+ // Returns whether |pref_name| corresponds to a pref that is controlled by |
+ // the owner, and |profile_| is not the owner profile. |
+ bool IsPrefOwnerControlled(const std::string& pref_name); |
+ |
+ // Returns whether |pref_name| corresponds to a pref that is controlled by |
+ // the primary user, and |profile_| is not the primary profile. |
+ bool IsPrefPrimaryUserControlled(const std::string& pref_name); |
+#endif |
+ |
+ // Returns whether |pref_name| corresponds to a pref that is controlled by |
+ // a supervisor, and |profile_| is supervised. |
+ bool IsPrefSupervisorControlled(const std::string& pref_name); |
+ |
// Returns whether |pref_name| corresponds to a pref that is user modifiable |
// (i.e., not made restricted by a user or device policy). |
bool IsPrefUserModifiable(const std::string& pref_name); |