| Index: chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| diff --git a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| index a5cbe3b7c5c1c5616a7a1ababb4cc36f279640c4..dcb505d8338ab7285b214b0aa9260068a915224c 100644
|
| --- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| +++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| @@ -14,6 +14,20 @@ Polymer({
|
| input.value += value;
|
| },
|
|
|
| + // Called when the user wants to clear the PIN.
|
| + onPinClear_: function() {
|
| + var pin = this.$$('#pin-input');
|
| + switch (pin.value.length) {
|
| + case 0:
|
| + case 1:
|
| + pin.value = '';
|
| + break;
|
| + default:
|
| + pin.value = pin.value.substring(0, pin.value.length - 1);
|
| + break;
|
| + }
|
| + },
|
| +
|
| // Called when the user wants to submit the PIN.
|
| onPinSubmit_: function() {
|
| var pin = this.$$('#pin-input').value;
|
|
|