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

Side by Side Diff: chrome/browser/resources/settings/people_page/quick_unlock_validating_behavior.js

Issue 2097673002: Add a settings screen that lets the user choose how they unlock their device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pin-unlock-settings-authenticate
Patch Set: Adjust for authenticate screen comments Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(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 QuickUnlockValidatingBehavior = [QuickUnlockRoutingBehavior, {
12 properties: {
13 setModes: Object
14 },
15
16 /**
17 * Verifies that there is an account password. If there is no password, this
18 * will redirect to the authenticate screen.
19 */
20 checkForPassword: function() {
tommycli 2016/06/29 22:56:09 Maybe rename this to: askForPasswordIfUnset, or so
jdufault 2016/06/30 18:10:18 Done, this is a much better name.
21 if (!this.setModes) {
22 this.currentRoute = {
23 page: 'basic',
24 section: 'people',
25 subpage: [QuickUnlockScreen.AUTHENTICATE]
26 };
27 }
28 }
29 }];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698