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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/people_page/quick_unlock_password_detect_behavior.js
diff --git a/chrome/browser/resources/settings/people_page/quick_unlock_password_detect_behavior.js b/chrome/browser/resources/settings/people_page/quick_unlock_password_detect_behavior.js
index 3b67d36a6a5c0e152b5e0d45eb0cb66aa9d4ed83..6206a20113cfd336c148d26173c7112194745e3f 100644
--- a/chrome/browser/resources/settings/people_page/quick_unlock_password_detect_behavior.js
+++ b/chrome/browser/resources/settings/people_page/quick_unlock_password_detect_behavior.js
@@ -19,12 +19,7 @@ var QuickUnlockPasswordDetectBehavior = [QuickUnlockRoutingBehavior, {
* redirect to the authenticate screen.
*/
askForPasswordIfUnset: function() {
- if (!this.setModes) {
- this.currentRoute = {
- page: 'basic',
- section: 'people',
- subpage: [QuickUnlockScreen.AUTHENTICATE]
- };
- }
+ if (!this.setModes)
+ settings.navigateTo(settings.Route.QUICK_UNLOCK_AUTHENTICATE);
}
}];

Powered by Google App Engine
This is Rietveld 408576698