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

Unified Diff: chrome/browser/resources/settings/downloads_page/downloads_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
Index: chrome/browser/resources/settings/downloads_page/downloads_page.js
diff --git a/chrome/browser/resources/settings/downloads_page/downloads_page.js b/chrome/browser/resources/settings/downloads_page/downloads_page.js
index 76bb8d7108f79afdc8ad965476364d99e3b73729..fcc2039113c916d2a4d0b7f8828c5df80c0d5e7b 100644
--- a/chrome/browser/resources/settings/downloads_page/downloads_page.js
+++ b/chrome/browser/resources/settings/downloads_page/downloads_page.js
@@ -49,18 +49,18 @@ Polymer({
attached: function() {
this.browserProxy_ = settings.DownloadsBrowserProxyImpl.getInstance();
- this.addWebUIListener('auto-open-downloads-changed', function(autoOpen) {
+ this.addWebUIListener('auto-open-downloads-changed', autoOpen => {
this.autoOpenDownloads_ = autoOpen;
- }.bind(this));
+ });
this.browserProxy_.initializeDownloads();
},
/** @private */
selectDownloadLocation_: function() {
- listenOnce(this, 'transitionend', function() {
+ listenOnce(this, 'transitionend', () => {
this.browserProxy_.selectDownloadLocation();
- }.bind(this));
+ });
},
// <if expr="chromeos">

Powered by Google App Engine
This is Rietveld 408576698