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

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

Issue 2773813004: MD Settings: Fix About page exception with Advanced lazy loading (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 600499e704e72bcd590b9649e15e087b4fd2290b..3388fb65a89a6e355b7945a52f7653a3c754e7df 100644
--- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
+++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
@@ -149,7 +149,11 @@ var MainPageBehaviorImpl = {
// ADVANCED, otherwise tryTransitionToSection_ will recurse endlessly.
!currentRoute.isNavigableDialog) {
assert(currentRoute.section);
- promise = this.$$('#advancedPageTemplate').get();
+
+ // The About page also uses this behavior, and doesn't expand Advanced.
dpapad 2017/03/23 23:09:58 Ah, I understand now the problem. The code assumes
tommycli 2017/03/24 19:11:39 Done.
+ var advancedTemplate = this.$$('#advancedPageTemplate');
+ if (advancedTemplate)
+ promise = advancedTemplate.get();
}
// When this animation ends, another may be necessary. Call this function
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698