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

Unified Diff: chrome/browser/resources/settings/site_settings/cookie_tree_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/site_settings/cookie_tree_behavior.js
diff --git a/chrome/browser/resources/settings/site_settings/cookie_tree_behavior.js b/chrome/browser/resources/settings/site_settings/cookie_tree_behavior.js
index 0b540b9c63a7a326a313e7edfd02afe386ac2fdc..38d95db25064077eac236c98643048bdbfd1e1d0 100644
--- a/chrome/browser/resources/settings/site_settings/cookie_tree_behavior.js
+++ b/chrome/browser/resources/settings/site_settings/cookie_tree_behavior.js
@@ -38,7 +38,7 @@ var CookieTreeBehaviorImpl = {
* @private
*/
loadChildren_: function(list) {
- var loadChildrenRecurse = function(childList) {
+ var loadChildrenRecurse = childList => {
var parentId = childList.id;
var children = childList.children;
var prefix = '';
@@ -56,15 +56,15 @@ var CookieTreeBehaviorImpl = {
}
}
return Promise.all(promises);
- }.bind(this);
+ };
// New root being added, clear the list and add the nodes.
this.sites = [];
this.rootCookieNode.addChildNodes(this.rootCookieNode, list.children);
- return loadChildrenRecurse(list).then(function() {
+ return loadChildrenRecurse(list).then(() => {
this.sites = this.rootCookieNode.getSummaryList();
return Promise.resolve();
- }.bind(this));
+ });
},
/**

Powered by Google App Engine
This is Rietveld 408576698