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

Unified Diff: ui/webui/resources/js/chromeos/ui_account_tweaks.js

Issue 18197002: Remove the google drive option on the settings page for supervized user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/chromeos/ui_account_tweaks.js
diff --git a/ui/webui/resources/js/chromeos/ui_account_tweaks.js b/ui/webui/resources/js/chromeos/ui_account_tweaks.js
index 1ac79f4974527e1a5c8739b498d15c9764d3e857..ccfd3578132d3d4f20e512ca5ce246a4010d16a5 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")
« no previous file with comments | « chrome/browser/ui/webui/chromeos/ui_account_tweaks.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698