| 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 */
|
|
|