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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_entry.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_entry.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js b/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
index be252d7f5063653c0b1b21fccb022374f912d33c..411cae8530135555a7e35ccbab2080d772c1863c 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
@@ -98,17 +98,17 @@ Polymer({
this.closePopupMenu_();
this.showEditSearchEngineDialog_ = true;
- this.async(function() {
+ this.async(() => {
var dialog = this.$$('settings-search-engine-dialog');
// Register listener to detect when the dialog is closed. Flip the boolean
// once closed to force a restamp next time it is shown such that the
// previous dialog's contents are cleared.
- dialog.addEventListener('close', function() {
+ dialog.addEventListener('close', () => {
this.showEditSearchEngineDialog_ = false;
cr.ui.focusWithoutInk(
assert(this.$$('button[is="paper-icon-button-light"]')));
- }.bind(this));
- }.bind(this));
+ });
+ });
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698