Chromium Code Reviews| 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 0387459603505009fbaefaf1581e78d658c1c59b..a78062a3f712f9d5965716e11ae99d2365f6a2cc 100644 |
| --- a/chrome/browser/extensions/api/settings_private/prefs_util.h |
| +++ b/chrome/browser/extensions/api/settings_private/prefs_util.h |
| @@ -59,6 +59,22 @@ class PrefsUtil { |
| // Returns whether |pref_name| corresponds to a pref whose type is URL. |
| bool IsPrefTypeURL(const std::string& pref_name); |
| + // Returns whether |pref_name| corresponds to a pref that is enterprise |
| + // managed (Chrome OS only). |
| + 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. |
|
michaelpg
2015/08/27 23:40:01
Chrome OS only.
Dan Beam
2015/08/28 00:20:22
can it be in if-defs, then?
stevenjb
2015/08/28 23:18:07
Done.
|
| + bool IsPrefOwnerControlled(const std::string& pref_name); |
| + |
| + // 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 controlled by |
| + // the primary user, and |profile_| is not the primary profile. |
|
michaelpg
2015/08/27 23:40:01
Chrome OS only, right?
stevenjb
2015/08/28 23:18:07
Yes, done.
|
| + bool IsPrefPrimaryUserControlled(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); |