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

Unified Diff: chrome/browser/extensions/api/settings_private/prefs_util.h

Issue 1310373008: Add cr_policy_indicator for settings controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md_settings_compiled_resources_3
Patch Set: Elim unused tyep Created 5 years, 4 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: 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);

Powered by Google App Engine
This is Rietveld 408576698