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

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

Issue 2371303002: md-settings: add routing to chrome://settings/triggeredResetProfileSettings (Closed)
Patch Set: Rebase 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 7116b5d453955cc05f5f761e9694842a627141ec..22d4728ce359e784ae8fae3be84479e28917b64f 100644
--- a/chrome/browser/resources/settings/reset_page/reset_page.js
+++ b/chrome/browser/resources/settings/reset_page/reset_page.js
@@ -39,10 +39,15 @@ Polymer({
},
},
- /** @protected */
- currentRouteChanged: function() {
+ /**
+ * settings.RouteObserverBehavior
+ * @param {!settings.Route} route
+ * @protected
+ */
+ currentRouteChanged: function(route) {
this.showResetProfileDialog_ =
- settings.getCurrentRoute() == settings.Route.RESET_DIALOG;
+ route == settings.Route.TRIGGERED_RESET_DIALOG ||
+ route == settings.Route.RESET_DIALOG;
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698