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

Unified Diff: chrome/browser/resources/settings/settings_page/settings_subpage.js

Issue 2226313003: Settings Router Refactor: Remove one last stray subpage-back. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 4 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/settings_page/settings_subpage.js
diff --git a/chrome/browser/resources/settings/settings_page/settings_subpage.js b/chrome/browser/resources/settings/settings_page/settings_subpage.js
index abb43dc1421e2afd514d7675d6f5a6b20a606c36..eaa4874cc6186bbd8346c75c05b5d40ba30e0ce2 100644
--- a/chrome/browser/resources/settings/settings_page/settings_subpage.js
+++ b/chrome/browser/resources/settings/settings_page/settings_subpage.js
@@ -5,8 +5,7 @@
/**
* @fileoverview
* 'settings-subpage' shows a subpage beneath a subheader. The header contains
- * the subpage title and a back icon. The back icon fires an event which
- * is caught by settings-animated-pages, so it requires no separate handling.
+ * the subpage title and a back icon.
*/
Polymer({
@@ -44,8 +43,7 @@ Polymer({
/** @private */
onTapBack_: function() {
- // Event is caught by settings-animated-pages.
- this.fire('subpage-back');
+ settings.navigateTo(assert(settings.getCurrentRoute().parent));
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698