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

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

Issue 12968004: Implemented new UI for error messages on OOBE/Login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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/screen_tpm_error.js
diff --git a/chrome/browser/resources/chromeos/login/screen_tpm_error.js b/chrome/browser/resources/chromeos/login/screen_tpm_error.js
index 31a5df17024aee33f42cd17137f0d9585948f46c..3843ef806db195d85b235342f8689f7648ead2c5 100644
--- a/chrome/browser/resources/chromeos/login/screen_tpm_error.js
+++ b/chrome/browser/resources/chromeos/login/screen_tpm_error.js
@@ -28,7 +28,22 @@ cr.define('login', function() {
/** @override */
decorate: function() {
- }
+ },
+
+ /**
+ * Buttons in oobe wizard's button strip.
+ * @type {array} Array of Buttons.
+ */
+ get buttons() {
+ var rebootButton = this.ownerDocument.createElement('button');
+ rebootButton.id = 'reboot-button';
+ rebootButton.textContent =
+ loadTimeData.getString('errorTpmFailureRebootButton');
+ rebootButton.addEventListener('click', function() {
+ chrome.send('rebootSystem');
+ });
+ return [rebootButton];
+ },
};
/**

Powered by Google App Engine
This is Rietveld 408576698