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

Unified Diff: chrome/browser/resources/chromeos/login/login_common.js

Issue 871483003: Add device policy to disallow shutdown - WebUI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits rebase Created 5 years, 11 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/resources/chromeos/login/login_common.js
diff --git a/chrome/browser/resources/chromeos/login/login_common.js b/chrome/browser/resources/chromeos/login/login_common.js
index 0d5895dd71841cfdd6c11acf1f6499b45c6c5727..2c078699df21cc60c889fdc3a0ea9bf9f4b72f22 100644
--- a/chrome/browser/resources/chromeos/login/login_common.js
+++ b/chrome/browser/resources/chromeos/login/login_common.js
@@ -113,6 +113,16 @@ cr.define('cr.ui', function() {
};
/**
+ * When |showShutdown| is set to "true", the shutdown button is shown and the
+ * reboot button hidden. If set to "false", the reboot button is visible and
+ * the shutdown button hidden.
+ */
+ Oobe.showShutdown = function(showShutdown) {
+ $('login-header-bar').showShutdownButton = showShutdown;
+ $('login-header-bar').showRebootButton = !showShutdown;
+ };
+
+ /**
* Enables keyboard driven flow.
*/
Oobe.enableKeyboardFlow = function(value) {
« no previous file with comments | « chrome/browser/resources/chromeos/login/header_bar.js ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698