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

Side by Side Diff: chrome/browser/resources/settings/people_page/quick_unlock_choose_method.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 * 'settings-quick-unlock-choose-method' allows the user to change how they 7 * 'settings-quick-unlock-choose-method' allows the user to change how they
8 * unlock their device. Note that setting up the unlock method is delegated 8 * unlock their device. Note that setting up the unlock method is delegated
9 * to other elements. 9 * to other elements.
10 * 10 *
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 * @param {!string} selectedUnlockType The current unlock type. Used to let 166 * @param {!string} selectedUnlockType The current unlock type. Used to let
167 * polymer know about the dependency. 167 * polymer know about the dependency.
168 * @private 168 * @private
169 */ 169 */
170 showSetupPin_: function(selectedUnlockType) { 170 showSetupPin_: function(selectedUnlockType) {
171 return selectedUnlockType === QuickUnlockUnlockType.PIN_PASSWORD; 171 return selectedUnlockType === QuickUnlockUnlockType.PIN_PASSWORD;
172 }, 172 },
173 173
174 /** @private */ 174 /** @private */
175 onConfigurePin_: function() { 175 onConfigurePin_: function() {
176 this.currentRoute = { 176 settings.navigateTo(settings.Route.QUICK_UNLOCK_SETUP_PIN);
177 page: 'basic',
178 section: 'people',
179 subpage: [QuickUnlockScreen.CHOOSE_METHOD, QuickUnlockScreen.SETUP_PIN]
180 };
181 }, 177 },
182 }); 178 });
183 179
184 })(); 180 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698