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

Unified Diff: chrome/browser/resources/settings/people_page/manage_profile.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/manage_profile.js
diff --git a/chrome/browser/resources/settings/people_page/manage_profile.js b/chrome/browser/resources/settings/people_page/manage_profile.js
index 91e46daeb08debde986a46bf2e68e3820c99d9c4..0db9c24a31754b9f843b844df432f4bd838d0c8f 100644
--- a/chrome/browser/resources/settings/people_page/manage_profile.js
+++ b/chrome/browser/resources/settings/people_page/manage_profile.js
@@ -67,9 +67,9 @@ Polymer({
/** @override */
attached: function() {
- var setIcons = function(icons) {
+ var setIcons = icons => {
this.availableIcons = icons;
- }.bind(this);
+ };
this.addWebUIListener('available-icons-changed', setIcons);
this.browserProxy_.getAvailableIcons().then(setIcons);
@@ -81,7 +81,7 @@ Polymer({
this.$.name.value = this.profileName;
if (loadTimeData.getBoolean('profileShortcutsEnabled')) {
- this.browserProxy_.getProfileShortcutStatus().then(function(status) {
+ this.browserProxy_.getProfileShortcutStatus().then(status => {
if (status == ProfileShortcutStatus.PROFILE_SHORTCUT_SETTING_HIDDEN) {
this.isProfileShortcutSettingVisible_ = false;
return;
@@ -90,7 +90,7 @@ Polymer({
this.isProfileShortcutSettingVisible_ = true;
this.hasProfileShortcut_ =
status == ProfileShortcutStatus.PROFILE_SHORTCUT_FOUND;
- }.bind(this));
+ });
}
}
},

Powered by Google App Engine
This is Rietveld 408576698