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

Unified Diff: chrome/browser/resources/settings/site_settings/site_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/site_settings/site_list.js
diff --git a/chrome/browser/resources/settings/site_settings/site_list.js b/chrome/browser/resources/settings/site_settings/site_list.js
index f53c61933323e5f6730b985ce0c2f85006e83c92..be2e89f31f93751e6e035815b2481b98cbf42842 100644
--- a/chrome/browser/resources/settings/site_settings/site_list.js
+++ b/chrome/browser/resources/settings/site_settings/site_list.js
@@ -215,10 +215,10 @@ Polymer({
dialog.open(this.categorySubtype);
- dialog.addEventListener('close', function() {
+ dialog.addEventListener('close', () => {
cr.ui.focusWithoutInk(assert(this.$.addSite));
dialog.remove();
- }.bind(this));
+ });
},
/**
@@ -226,11 +226,10 @@ Polymer({
* @private
*/
populateList_: function() {
- this.browserProxy_.getExceptionList(this.category)
- .then(function(exceptionList) {
- this.processExceptions_([exceptionList]);
- this.closeActionMenu_();
- }.bind(this));
+ this.browserProxy_.getExceptionList(this.category).then(exceptionList => {
+ this.processExceptions_([exceptionList]);
+ this.closeActionMenu_();
+ });
},
/**

Powered by Google App Engine
This is Rietveld 408576698