OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * @fileoverview | |
7 * Contains utilities for verifying the user has entered an account password. | |
8 */ | |
9 | |
10 /** @polymerBehavior */ | |
11 var QuickUnlockPasswordDetectBehavior = { | |
12 properties: { | |
13 setModes: Object | |
14 }, | |
15 | |
16 /** | |
17 * Verifies that there is an account password available for the | |
18 * chrome.quickUnlockPrivate.setModes call. If there is no password, this will | |
19 * redirect to the authenticate screen. | |
20 */ | |
21 askForPasswordIfUnset: function() { | |
22 if (!this.setModes) | |
23 settings.navigateTo(settings.Route.QUICK_UNLOCK_AUTHENTICATE); | |
24 } | |
25 }; | |
OLD | NEW |