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

Unified Diff: chrome/browser/resources/settings/prefs/prefs.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/prefs/prefs.js
diff --git a/chrome/browser/resources/settings/prefs/prefs.js b/chrome/browser/resources/settings/prefs/prefs.js
index 537da2e75298d26966fb26ee5aebd4cd579a105d..b089c1007e416514431a7ff9a4ca3b2480e507b8 100644
--- a/chrome/browser/resources/settings/prefs/prefs.js
+++ b/chrome/browser/resources/settings/prefs/prefs.js
@@ -245,9 +245,9 @@ Polymer({
* @param {string} key
*/
refresh: function(key) {
- this.settingsApi_.getPref(key, function(pref) {
+ this.settingsApi_.getPref(key, pref => {
this.updatePrefs_([pref]);
- }.bind(this));
+ });
},
/**

Powered by Google App Engine
This is Rietveld 408576698