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

Unified Diff: chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.js

Issue 2160423002: Fix search always navigating to quick unlock authenticate screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/people_page/quick_unlock_choose_method.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.js
diff --git a/chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.js b/chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.js
index 0d47e63d1e57cac16acda09601d8508f05a71ecc..708512bd2c8a752549f627e28841adbe613b78d1 100644
--- a/chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.js
+++ b/chrome/browser/resources/settings/people_page/quick_unlock_setup_pin.js
@@ -104,7 +104,9 @@ Polymer({
/** @override */
attached: function() {
this.resetState_();
- this.askForPasswordIfUnset();
+
+ if (this.isScreenActive(QuickUnlockScreen.SETUP_PIN))
+ this.askForPasswordIfUnset();
},
/**
« no previous file with comments | « chrome/browser/resources/settings/people_page/quick_unlock_choose_method.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698