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

Unified Diff: chrome/browser/resources/settings/internet_page/network_property_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/internet_page/network_property_list.js
diff --git a/chrome/browser/resources/settings/internet_page/network_property_list.js b/chrome/browser/resources/settings/internet_page/network_property_list.js
index 006feca4d5ade7a673f982693481b38cd7d85b92..f333386cb780012619642ddb4b3501f62381c6e6 100644
--- a/chrome/browser/resources/settings/internet_page/network_property_list.js
+++ b/chrome/browser/resources/settings/internet_page/network_property_list.js
@@ -109,12 +109,12 @@ Polymer({
* @private
*/
computeFilter_: function(prefix, propertyDict, editFieldTypes) {
- return function(key) {
+ return key => {
if (editFieldTypes.hasOwnProperty(key))
return true;
var value = this.getPropertyValue_(key, prefix, propertyDict);
return value !== undefined && value !== '';
- }.bind(this);
+ };
},
/**

Powered by Google App Engine
This is Rietveld 408576698