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

Unified Diff: chrome/browser/resources/settings/people_page/user_list.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/user_list.js
diff --git a/chrome/browser/resources/settings/people_page/user_list.js b/chrome/browser/resources/settings/people_page/user_list.js
index f1cbc795b4830ee62d2becb31aabcd9620347030..f897fc9ba591d8ccab5e03859f14d8d70f5569f2 100644
--- a/chrome/browser/resources/settings/people_page/user_list.js
+++ b/chrome/browser/resources/settings/people_page/user_list.js
@@ -47,23 +47,23 @@ Polymer({
/** @override */
ready: function() {
- chrome.settingsPrivate.onPrefsChanged.addListener(function(prefs) {
+ chrome.settingsPrivate.onPrefsChanged.addListener(prefs => {
prefs.forEach(function(pref) {
if (pref.key == 'cros.accounts.users') {
- chrome.usersPrivate.getWhitelistedUsers(function(users) {
+ chrome.usersPrivate.getWhitelistedUsers(users => {
this.setUsers_(users);
- }.bind(this));
+ });
}
}, this);
- }.bind(this));
+ });
},
/** @protected */
currentRouteChanged: function() {
if (settings.getCurrentRoute() == settings.routes.ACCOUNTS) {
- chrome.usersPrivate.getWhitelistedUsers(function(users) {
+ chrome.usersPrivate.getWhitelistedUsers(users => {
this.setUsers_(users);
- }.bind(this));
+ });
}
},

Powered by Google App Engine
This is Rietveld 408576698