summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/webui/resources/js/chromeos/ui_account_tweaks.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/webui/resources/js/chromeos/ui_account_tweaks.js b/ui/webui/resources/js/chromeos/ui_account_tweaks.js
index 1ac79f4..ccfd357 100644
--- a/ui/webui/resources/js/chromeos/ui_account_tweaks.js
+++ b/ui/webui/resources/js/chromeos/ui_account_tweaks.js
@@ -39,6 +39,13 @@ cr.define('uiAccountTweaks', function() {
};
/**
+ * @return {boolean} Whether we're currently in supervised user mode.
+ */
+ UIAccountTweaks.loggedInAsLocallyManagedUser = function() {
+ return loadTimeData.getBoolean('loggedInAsLocallyManagedUser');
+ };
+
+ /**
* Disables or hides some elements in Guest mode in ChromeOS.
* All elements within given document with guest-visibility
* attribute are either hidden (for guest-visibility="hidden")