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

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: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/settings_private/prefs_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | chrome/browser/extensions/api/settings_private/prefs_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698