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

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

Issue 2754563002: MD Settings: Lazy load the contents of the "advanced" settings. (Closed)
Patch Set: Fix tests. Created 3 years, 9 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 8fdf5f7e6e61f2e949d67e6f8acaa3df9fce936d..dc7fa4a69d3a03b02c26b1a7b87033be88cb047b 100644
--- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
+++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
@@ -116,6 +116,8 @@ var MainPageBehaviorImpl = {
promise = this.expandSection_(currentSection);
else if (scrollToSection)
currentSection.scrollIntoView();
+ } else if (settings.Route.ADVANCED.contains(currentRoute)) {
+ promise = this.$$('#advancedPageTemplate').get();
}
// When this animation ends, another may be necessary. Call this function

Powered by Google App Engine
This is Rietveld 408576698