| Index: chrome/browser/resources/chromeos/login/oobe_screen_update.js
|
| diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_update.js b/chrome/browser/resources/chromeos/login/oobe_screen_update.js
|
| index 1853b91097b455f23c17b08e1aff6a561740f467..d95fd54f482c1b97d721a98fd5200fd6862d8115 100644
|
| --- a/chrome/browser/resources/chromeos/login/oobe_screen_update.js
|
| +++ b/chrome/browser/resources/chromeos/login/oobe_screen_update.js
|
| @@ -47,6 +47,18 @@ cr.define('oobe', function() {
|
| }
|
| };
|
|
|
| + UpdateScreen.enableUpdateCancel = function() {
|
| + $('update-cancel-hint').hidden = false;
|
| + document.addEventListener('keydown', function(e) {
|
| + if (e.keyCode == 27) { // Escape
|
| + var updateCancelHint = $('update-cancel-hint').children[0];
|
| + updateCancelHint.textContent =
|
| + localStrings.getString('cancelledUpdateMessage');
|
| + chrome.send('cancelUpdate');
|
| + }
|
| + });
|
| + };
|
| +
|
| return {
|
| UpdateScreen: UpdateScreen
|
| };
|
|
|