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

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

Issue 2984843003: MD Settings: Convert all usages of .bind(this) to use ES6 arrow function. (Closed)
Patch Set: Resolve conflicts. Created 3 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/lock_state_behavior.js
diff --git a/chrome/browser/resources/settings/people_page/lock_state_behavior.js b/chrome/browser/resources/settings/people_page/lock_state_behavior.js
index ac6762b2e658c2f932e1143382ec286c39d1f1fb..d40f58e59fc9deca33ccac813728edf73b3c7f48 100644
--- a/chrome/browser/resources/settings/people_page/lock_state_behavior.js
+++ b/chrome/browser/resources/settings/people_page/lock_state_behavior.js
@@ -63,7 +63,7 @@ var LockStateBehavior = {
* @private
*/
updateUnlockType_: function() {
- this.quickUnlockPrivate_.getActiveModes(function(modes) {
+ this.quickUnlockPrivate_.getActiveModes(modes => {
if (modes.includes(chrome.quickUnlockPrivate.QuickUnlockMode.PIN)) {
this.hasPin = true;
this.selectedUnlockType = LockScreenUnlockType.PIN_PASSWORD;
@@ -71,6 +71,6 @@ var LockStateBehavior = {
this.hasPin = false;
this.selectedUnlockType = LockScreenUnlockType.PASSWORD;
}
- }.bind(this));
+ });
},
};

Powered by Google App Engine
This is Rietveld 408576698