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

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

Issue 2184893002: Settings Router Refactor: Remove route.page legacy property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0217-settings-refactor-settings-menu
Patch Set: Created 4 years, 5 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/main_page_behavior.js
diff --git a/chrome/browser/resources/settings/settings_page/main_page_behavior.js b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
index 933a0ec4baab3a6cd5c57404141fed70b549de6c..553e82632751a2f734b9016397ddc72bba6d16ce 100644
--- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
+++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
@@ -407,10 +407,8 @@ var RoutableBehaviorImpl = {
this.collapseSection(section);
}
- if (newRoute && newRoute.section &&
- this.$$('[data-page=' + newRoute.page + ']')) {
+ if (newRoute && newRoute.section && this.getSection_(newRoute.section))
michaelpg 2016/07/28 23:22:32 is this just asking if the section is visible? can
tommycli 2016/07/29 00:03:35 I added a comment. This actually scrolls to the de
michaelpg 2016/07/29 00:21:12 oh, that makes sense. Ugh, this element was never
this.scrollToSection_();
- }
}
},

Powered by Google App Engine
This is Rietveld 408576698