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

Unified Diff: chrome/browser/resources/settings/controls/pref_control_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/controls/pref_control_behavior.js
diff --git a/chrome/browser/resources/settings/controls/pref_control_behavior.js b/chrome/browser/resources/settings/controls/pref_control_behavior.js
index dd3e55b4cfe51af92b1407701c5c5aad53fefb1b..d7597657387a22656d233e6c96a8949a01c48836 100644
--- a/chrome/browser/resources/settings/controls/pref_control_behavior.js
+++ b/chrome/browser/resources/settings/controls/pref_control_behavior.js
@@ -29,7 +29,7 @@ var PrefControlBehavior = {
* @private
*/
validatePref_: function() {
- CrSettingsPrefs.initialized.then(function() {
+ CrSettingsPrefs.initialized.then(() => {
if (!this.pref) {
var error = 'Pref not found for element ' + this.tagName;
if (this.id)
@@ -37,6 +37,6 @@ var PrefControlBehavior = {
error += ' in ' + this.domHost.tagName;
console.error(error);
}
- }.bind(this));
+ });
},
};

Powered by Google App Engine
This is Rietveld 408576698