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) { |