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

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

Issue 2375223002: md-settings: Fix back navigation from /resetProfileSettings. (Closed)
Patch Set: Fix failing test. Created 4 years, 2 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/reset_page/reset_page.js
diff --git a/chrome/browser/resources/settings/reset_page/reset_page.js b/chrome/browser/resources/settings/reset_page/reset_page.js
index a33fe549942ab800fe552712c177ba81771b886b..7116b5d453955cc05f5f761e9694842a627141ec 100644
--- a/chrome/browser/resources/settings/reset_page/reset_page.js
+++ b/chrome/browser/resources/settings/reset_page/reset_page.js
@@ -31,13 +31,18 @@ Polymer({
type: Boolean,
value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false
},
+
+ /** @private */
+ showResetProfileDialog_: {
+ type: Boolean,
+ value: false,
+ },
},
/** @protected */
currentRouteChanged: function() {
- if (settings.getCurrentRoute() == settings.Route.RESET_DIALOG) {
- this.$.resetProfileDialog.get().open();
- }
+ this.showResetProfileDialog_ =
+ settings.getCurrentRoute() == settings.Route.RESET_DIALOG;
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698