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

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

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shutdown_allowed => reboot_on_shutdown Created 6 years 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 9e4bd8f0be405836c63183b27824921bae4cac37..be1312dd3df994e74443dde48d8193150852b83a 100644
--- a/chrome/browser/resources/chromeos/login/login_common.js
+++ b/chrome/browser/resources/chromeos/login/login_common.js
@@ -110,6 +110,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) {

Powered by Google App Engine
This is Rietveld 408576698