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

Side by Side Diff: chrome/browser/resources/settings/people_page/quick_unlock_password_detect_behavior.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 * Contains utilities for verifying the user has entered an account password. 7 * Contains utilities for verifying the user has entered an account password.
8 */ 8 */
9 9
10 /** @polymerBehavior */ 10 /** @polymerBehavior */
11 var QuickUnlockPasswordDetectBehavior = [QuickUnlockRoutingBehavior, { 11 var QuickUnlockPasswordDetectBehavior = [QuickUnlockRoutingBehavior, {
12 properties: { 12 properties: {
13 setModes: Object 13 setModes: Object
14 }, 14 },
15 15
16 /** 16 /**
17 * Verifies that there is an account password available for the 17 * Verifies that there is an account password available for the
18 * chrome.quickUnlockPrivate.setModes call. If there is no password, this will 18 * chrome.quickUnlockPrivate.setModes call. If there is no password, this will
19 * redirect to the authenticate screen. 19 * redirect to the authenticate screen.
20 */ 20 */
21 askForPasswordIfUnset: function() { 21 askForPasswordIfUnset: function() {
22 if (!this.setModes) { 22 if (!this.setModes)
23 this.currentRoute = { 23 settings.navigateTo(settings.Route.QUICK_UNLOCK_AUTHENTICATE);
24 page: 'basic',
25 section: 'people',
26 subpage: [QuickUnlockScreen.AUTHENTICATE]
27 };
28 }
29 } 24 }
30 }]; 25 }];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698