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

Unified Diff: chrome/browser/resources/settings/appearance_page/appearance_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/appearance_page/appearance_page.js
diff --git a/chrome/browser/resources/settings/appearance_page/appearance_page.js b/chrome/browser/resources/settings/appearance_page/appearance_page.js
index 8b22e8fe6d82a3f7ef9e1660e582233be9b0e1ad..e8decc01566ded491d96457ba47c16d66b94f595 100644
--- a/chrome/browser/resources/settings/appearance_page/appearance_page.js
+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.js
@@ -140,9 +140,9 @@ Polymer({
this.$.defaultFontSize.menuOptions = this.fontSizeOptions_;
// TODO(dschuyler): Look into adding a listener for the
// default zoom percent.
- this.browserProxy_.getDefaultZoom().then(function(zoom) {
+ this.browserProxy_.getDefaultZoom().then(zoom => {
this.defaultZoom_ = zoom;
- }.bind(this));
+ });
},
/**
@@ -271,9 +271,9 @@ Polymer({
if (themeId) {
assert(!useSystemTheme);
- this.browserProxy_.getThemeInfo(themeId).then(function(info) {
+ this.browserProxy_.getThemeInfo(themeId).then(info => {
this.themeSublabel_ = info.name;
- }.bind(this));
+ });
this.themeUrl_ = 'https://chrome.google.com/webstore/detail/' + themeId;
return;

Powered by Google App Engine
This is Rietveld 408576698