| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-setup-pin-dialog' is the settings page for choosing a PIN. | 7 * 'settings-setup-pin-dialog' is the settings page for choosing a PIN. |
| 8 * | 8 * |
| 9 * Example: | 9 * Example: |
| 10 * | 10 * |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 this.setModes.call( | 282 this.setModes.call( |
| 283 null, | 283 null, |
| 284 [chrome.quickUnlockPrivate.QuickUnlockMode.PIN], | 284 [chrome.quickUnlockPrivate.QuickUnlockMode.PIN], |
| 285 [this.pinKeyboardValue_], | 285 [this.pinKeyboardValue_], |
| 286 onSetModesCompleted.bind(this)); | 286 onSetModesCompleted.bind(this)); |
| 287 this.writeUma_(LockScreenProgress.CONFIRM_PIN); | 287 this.writeUma_(LockScreenProgress.CONFIRM_PIN); |
| 288 }, | 288 }, |
| 289 | 289 |
| 290 /** | 290 /** |
| 291 * @private | 291 * @private |
| 292 * @param {string} problemMessage | |
| 293 * @return {boolean} | |
| 294 */ | |
| 295 hasProblem_: function(problemMessage) { | |
| 296 return !!problemMessage; | |
| 297 }, | |
| 298 | |
| 299 /** | |
| 300 * @private | |
| 301 * @param {boolean} isConfirmStep | 292 * @param {boolean} isConfirmStep |
| 302 * @return {string} | 293 * @return {string} |
| 303 */ | 294 */ |
| 304 getTitleMessage_: function(isConfirmStep) { | 295 getTitleMessage_: function(isConfirmStep) { |
| 305 return this.i18n(isConfirmStep ? 'configurePinConfirmPinTitle' : | 296 return this.i18n(isConfirmStep ? 'configurePinConfirmPinTitle' : |
| 306 'configurePinChoosePinTitle'); | 297 'configurePinChoosePinTitle'); |
| 307 }, | 298 }, |
| 308 | 299 |
| 309 /** | 300 /** |
| 310 * @private | 301 * @private |
| 311 * @param {boolean} isConfirmStep | 302 * @param {boolean} isConfirmStep |
| 312 * @return {string} | 303 * @return {string} |
| 313 */ | 304 */ |
| 314 getContinueMessage_: function(isConfirmStep) { | 305 getContinueMessage_: function(isConfirmStep) { |
| 315 return this.i18n(isConfirmStep ? 'confirm' : 'configurePinContinueButton'); | 306 return this.i18n(isConfirmStep ? 'confirm' : 'configurePinContinueButton'); |
| 316 }, | 307 }, |
| 317 }); | 308 }); |
| 318 | 309 |
| 319 })(); | 310 })(); |
| OLD | NEW |