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 * | 7 * |
8 * 'settings-quick-unlock-authenticate' shows a password input prompt to the | 8 * 'settings-quick-unlock-authenticate' shows a password input prompt to the |
9 * user. It validates the password is correct. Once the user has entered their | 9 * user. It validates the password is correct. Once the user has entered their |
10 * account password, the page navigates to the quick unlock setup methods page. | 10 * account password, the page navigates to the quick unlock setup methods page. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 function clearSetModes() { | 143 function clearSetModes() { |
144 // Reset the password so that any cached references to this.setModes | 144 // Reset the password so that any cached references to this.setModes |
145 // will fail. | 145 // will fail. |
146 password = ''; | 146 password = ''; |
147 this.setModes = null; | 147 this.setModes = null; |
148 } | 148 } |
149 | 149 |
150 this.clearAccountPasswordTimeout_ = setTimeout( | 150 this.clearAccountPasswordTimeout_ = setTimeout( |
151 clearSetModes.bind(this), PASSWORD_ACTIVE_DURATION_MS); | 151 clearSetModes.bind(this), PASSWORD_ACTIVE_DURATION_MS); |
152 | 152 |
153 this.currentRoute = { | 153 settings.navigateTo(settings.Route.QUICK_UNLOCK_CHOOSE_METHOD); |
154 page: 'basic', | |
155 section: 'people', | |
156 subpage: [QuickUnlockScreen.CHOOSE_METHOD] | |
157 }; | |
158 } | 154 } |
159 } | 155 } |
160 | 156 |
161 checkAccountPassword_(this.password_, onPasswordChecked.bind(this)); | 157 checkAccountPassword_(this.password_, onPasswordChecked.bind(this)); |
162 } | 158 } |
163 }); | 159 }); |
164 | 160 |
165 })(); | 161 })(); |
OLD | NEW |