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

Unified Diff: chrome/browser/resources/settings/about_page/about_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 | « no previous file | chrome/browser/resources/settings/about_page/about_page_browser_proxy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/about_page/about_page.js
diff --git a/chrome/browser/resources/settings/about_page/about_page.js b/chrome/browser/resources/settings/about_page/about_page.js
index c9842d519b75082b3de4a5605ff9bd174ae7cdd6..4270abf92a81b813a60fc906965ba7a97507647a 100644
--- a/chrome/browser/resources/settings/about_page/about_page.js
+++ b/chrome/browser/resources/settings/about_page/about_page.js
@@ -136,19 +136,19 @@ Polymer({
settings.LifetimeBrowserProxyImpl.getInstance();
// <if expr="chromeos">
- this.addEventListener('target-channel-changed', function(e) {
+ this.addEventListener('target-channel-changed', e => {
this.targetChannel_ = e.detail;
- }.bind(this));
+ });
- this.aboutBrowserProxy_.getChannelInfo().then(function(info) {
+ this.aboutBrowserProxy_.getChannelInfo().then(info => {
this.currentChannel_ = info.currentChannel;
this.targetChannel_ = info.targetChannel;
this.startListening_();
- }.bind(this));
+ });
- this.aboutBrowserProxy_.getRegulatoryInfo().then(function(info) {
+ this.aboutBrowserProxy_.getRegulatoryInfo().then(info => {
this.regulatoryInfo_ = info;
- }.bind(this));
+ });
// </if>
// <if expr="not chromeos">
this.startListening_();
« no previous file with comments | « no previous file | chrome/browser/resources/settings/about_page/about_page_browser_proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698