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

Unified Diff: chrome/browser/resources/settings/site_settings_page/site_settings_page.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
« no previous file with comments | « chrome/browser/resources/settings/site_settings/usb_devices.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/site_settings_page/site_settings_page.js
diff --git a/chrome/browser/resources/settings/site_settings_page/site_settings_page.js b/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
index e07ce92b87c66802c33efb927dfbc4202aabe6e6..5e62033088bca77c1e312f90bdf4b8d1ff6a870e 100644
--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.js
@@ -88,11 +88,11 @@ Polymer({
[R.SITE_SETTINGS_USB_DEVICES, 'usb-devices'],
[R.SITE_SETTINGS_PDF_DOCUMENTS, 'pdf-documents'],
[R.SITE_SETTINGS_PROTECTED_CONTENT, 'protected-content'],
- ].forEach(function(pair) {
+ ].forEach(pair => {
var route = pair[0];
var id = pair[1];
this.focusConfig.set(route.path, '* /deep/ #' + id + ' .subpage-arrow');
- }.bind(this));
+ });
},
/** @override */
@@ -146,11 +146,11 @@ Polymer({
*/
updateDefaultValueLabel_: function(category) {
this.browserProxy.getDefaultValueForContentType(category).then(
- function(defaultValue) {
+ defaultValue => {
this.set(
'default_.' + Polymer.CaseMap.dashToCamelCase(category),
defaultValue.setting);
- }.bind(this));
+ });
},
/**
« no previous file with comments | « chrome/browser/resources/settings/site_settings/usb_devices.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698