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

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

Issue 2156413002: Settings Router Refactor: Migrate to settings.Route.navigateTo calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use timing fix Created 4 years, 4 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 * 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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698