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

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

Issue 2538303002: md-settings: Added settings for fingerprint unlock. (Closed)
Patch Set: Rebased. Created 3 years, 10 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
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-lock-screen' allows the user to change how they unlock their 7 * 'settings-lock-screen' allows the user to change how they unlock their
8 * device. 8 * device.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 30 matching lines...) Expand all
41 /** 41 /**
42 * writeUma_ is a function that handles writing uma stats. It may be 42 * writeUma_ is a function that handles writing uma stats. It may be
43 * overridden for tests. 43 * overridden for tests.
44 * 44 *
45 * @type {Function} 45 * @type {Function}
46 * @private 46 * @private
47 */ 47 */
48 writeUma_: { 48 writeUma_: {
49 type: Object, 49 type: Object,
50 value: function() { return settings.recordLockScreenProgress; } 50 value: function() { return settings.recordLockScreenProgress; }
51 } 51 },
52
53 /**
54 * True if pin unlock settings should be displayed on this machine.
55 * @private
56 */
57 pinUnlockEnabled_: {
58 type: Boolean,
59 value: function() {
60 return loadTimeData.getBoolean('pinUnlockEnabled');
61 },
62 readOnly: true,
63 },
64
65 /**
66 * True if fingerprint unlock settings should be displayed on this machine.
67 * @private
68 */
69 fingerprintUnlockEnabled_: {
70 type: Boolean,
71 value: function() {
72 return loadTimeData.getBoolean('fingerprintUnlockEnabled');
73 },
74 readOnly: true,
75 },
52 }, 76 },
53 77
54 /** selectedUnlockType is defined in LockStateBehavior. */ 78 /** selectedUnlockType is defined in LockStateBehavior. */
55 observers: ['selectedUnlockTypeChanged_(selectedUnlockType)'], 79 observers: ['selectedUnlockTypeChanged_(selectedUnlockType)'],
56 80
57 /** @override */ 81 /** @override */
58 attached: function() { 82 attached: function() {
59 // currentRouteChanged is not called during the initial navigation. If the 83 // currentRouteChanged is not called during the initial navigation. If the
60 // user navigates directly to the lockScreen page, we still want to show the 84 // user navigates directly to the lockScreen page, we still want to show the
61 // password prompt page. 85 // password prompt page.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 /** 157 /**
134 * @param {!Event} e 158 * @param {!Event} e
135 * @private 159 * @private
136 */ 160 */
137 onConfigurePin_: function(e) { 161 onConfigurePin_: function(e) {
138 e.preventDefault(); 162 e.preventDefault();
139 this.$.setupPin.open(); 163 this.$.setupPin.open();
140 this.writeUma_(LockScreenProgress.CHOOSE_PIN_OR_PASSWORD); 164 this.writeUma_(LockScreenProgress.CHOOSE_PIN_OR_PASSWORD);
141 }, 165 },
142 }); 166 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698