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)); |
+ }); |
}, |
}; |