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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_dialog.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/search_engines_page/search_engine_dialog.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
index f77d20022fe00a9c64a390600f5abda07db7d211..465bfa25f340e00501caa9d2dbbe403359847ea3 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
@@ -66,9 +66,9 @@ Polymer({
this.actionButtonText_ = loadTimeData.getString('add');
}
- this.addEventListener('cancel', function() {
+ this.addEventListener('cancel', () => {
this.browserProxy_.searchEngineEditCancelled();
- }.bind(this));
+ });
},
/** @override */
@@ -108,10 +108,10 @@ Polymer({
this.browserProxy_
.validateSearchEngineInput(inputElement.id, inputElement.value)
- .then(function(isValid) {
+ .then(isValid => {
inputElement.invalid = !isValid;
this.updateActionButtonState_();
- }.bind(this));
+ });
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698