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

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

Issue 2505973004: MD Settings: Add route for the Import Data dialog at /importData. (Closed)
Patch Set: Created 4 years, 1 month 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/browser/resources/settings/route.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/people_page.js
diff --git a/chrome/browser/resources/settings/people_page/people_page.js b/chrome/browser/resources/settings/people_page/people_page.js
index db48750dc6c900c3dca551c2647d0c57f3e51d8c..eee145ccd8dffe61887ffc0c7de74dac01f4f051 100644
--- a/chrome/browser/resources/settings/people_page/people_page.js
+++ b/chrome/browser/resources/settings/people_page/people_page.js
@@ -150,6 +150,9 @@ Polymer({
/** @protected */
currentRouteChanged: function() {
+ this.showImportDataDialog_ =
+ settings.getCurrentRoute() == settings.Route.IMPORT_DATA;
+
if (settings.getCurrentRoute() == settings.Route.SIGN_OUT) {
// If the sync status has not been fetched yet, optimistically display
// the disconnect dialog. There is another check when the sync status is
@@ -359,12 +362,12 @@ Polymer({
/** @private */
onImportDataTap_: function() {
- this.showImportDataDialog_ = true;
+ settings.navigateTo(settings.Route.IMPORT_DATA);
},
/** @private */
onImportDataDialogClosed_: function() {
- this.showImportDataDialog_ = false;
+ settings.navigateToPreviousRoute();
},
</if>
« no previous file with comments | « no previous file | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698