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

Unified Diff: chrome/browser/resources/settings/people_page/import_data_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/people_page/import_data_dialog.js
diff --git a/chrome/browser/resources/settings/people_page/import_data_dialog.js b/chrome/browser/resources/settings/people_page/import_data_dialog.js
index 83099cd0cd80cf345ed3da9dc995181af4fdbc2a..d12dfee24b9b468a5abb535238d86088d05e28c7 100644
--- a/chrome/browser/resources/settings/people_page/import_data_dialog.js
+++ b/chrome/browser/resources/settings/people_page/import_data_dialog.js
@@ -53,25 +53,20 @@ Polymer({
/** @override */
attached: function() {
this.browserProxy_ = settings.ImportDataBrowserProxyImpl.getInstance();
- this.browserProxy_.initializeImportDialog().then(
- /** @param {!Array<!settings.BrowserProfile>} data */
- function(data) {
- this.browserProfiles_ = data;
- this.selected_ = this.browserProfiles_[0];
-
- // Show the dialog only after the browser profiles data is populated
- // to avoid UI flicker.
- this.$.dialog.showModal();
- }.bind(this));
-
- this.addWebUIListener(
- 'import-data-status-changed',
- /** @param {settings.ImportDataStatus} importStatus */
- function(importStatus) {
- this.importStatus_ = importStatus;
- if (this.hasImportStatus_(settings.ImportDataStatus.FAILED))
- this.closeDialog_();
- }.bind(this));
+ this.browserProxy_.initializeImportDialog().then(data => {
+ this.browserProfiles_ = data;
+ this.selected_ = this.browserProfiles_[0];
+
+ // Show the dialog only after the browser profiles data is populated
+ // to avoid UI flicker.
+ this.$.dialog.showModal();
+ });
+
+ this.addWebUIListener('import-data-status-changed', importStatus => {
+ this.importStatus_ = importStatus;
+ if (this.hasImportStatus_(settings.ImportDataStatus.FAILED))
+ this.closeDialog_();
+ });
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698