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

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

Issue 2482553002: [MD Settings][People] UI polish for the easy unlock row (Closed)
Patch Set: Created 4 years, 1 month 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/people_page.js
diff --git a/chrome/browser/resources/settings/people_page/people_page.js b/chrome/browser/resources/settings/people_page/people_page.js
index 5ec7f887782a64ae45aecfed3e901df791867242..23b9015c4f7b779f499e7c12294c68b9115d72fb 100644
--- a/chrome/browser/resources/settings/people_page/people_page.js
+++ b/chrome/browser/resources/settings/people_page/people_page.js
@@ -278,6 +278,18 @@ Polymer({
onEasyUnlockTurnOffTap_: function() {
this.$$('#easyUnlockTurnOffDialog').open();
},
+
+ /**
+ * @param {boolean} easyUnlockEnabled
+ * @param {boolean} easyUnlockProximityDetectionAllowed
+ * @return {string} The easy unlock row's class name.
+ * @private
+ */
+ getEasyUnlockClass_: function(easyUnlockEnabled,
+ easyUnlockProximityDetectionAllowed) {
+ return easyUnlockEnabled && easyUnlockProximityDetectionAllowed ?
+ 'three-line' : 'two-line';
+ },
</if>
/** @private */

Powered by Google App Engine
This is Rietveld 408576698