summaryrefslogtreecommitdiffstats
path: root/ui/webui
diff options
context:
space:
mode:
authoryoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-29 21:07:54 +0000
committeryoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-29 21:07:54 +0000
commiteb4de0a2654a048adbc03fd281ae8ef33188f016 (patch)
tree94e81ddc0292aff800b4491403f303e117e1ec04 /ui/webui
parent92f68594386587f0d4c72cb283326d57c5df26c2 (diff)
downloadchromium_src-eb4de0a2654a048adbc03fd281ae8ef33188f016.zip
chromium_src-eb4de0a2654a048adbc03fd281ae8ef33188f016.tar.gz
chromium_src-eb4de0a2654a048adbc03fd281ae8ef33188f016.tar.bz2
Remove the google drive option on the settings page for supervized user
BUG=253660 TEST=manual TBR=estade@chromium.org This is reland of http://crrev.com/209125 Review URL: https://chromiumcodereview.appspot.com/18197002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/webui')
-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")