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

Unified Diff: chrome/browser/resources/settings/people_page/import_data_dialog.js

Issue 2596083002: MD Settings: Defer opening Import Dialog dialog to prevent UI flicker (Closed)
Patch Set: Update test Created 4 years 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
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/import_data_dialog_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e035c281577d645275687921dfceb0bb6e3d6eec..058a27f7858cc41a95dd9eaf68b715e7f2134525 100644
--- a/chrome/browser/resources/settings/people_page/import_data_dialog.js
+++ b/chrome/browser/resources/settings/people_page/import_data_dialog.js
@@ -58,6 +58,10 @@ Polymer({
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(
@@ -68,8 +72,6 @@ Polymer({
if (this.hasImportStatus_(settings.ImportDataStatus.FAILED))
this.closeDialog_();
}.bind(this));
-
- this.$.dialog.showModal();
},
/** @private */
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/import_data_dialog_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698