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

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

Issue 2217403002: MD Settings: Tune searching algorithm to skip certain subpages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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_animated_pages.js
diff --git a/chrome/browser/resources/settings/settings_page/settings_animated_pages.js b/chrome/browser/resources/settings/settings_page/settings_animated_pages.js
index 682ead2dc14c8c474601fbe74938ce5aba6b00c1..937584bbfcc84697559dbea4718d0cbc01503211 100644
--- a/chrome/browser/resources/settings/settings_page/settings_animated_pages.js
+++ b/chrome/browser/resources/settings/settings_page/settings_animated_pages.js
@@ -147,6 +147,11 @@ Polymer({
.querySelector('settings-subpage');
if (!subpage.id)
subpage.id = id;
+ // Carry over the 'no-search' attribute from the template to the stamped
+ // instance, such that the stamped instance will also be ignored by the
+ // searching algorithm.
+ if (template.hasAttribute('no-search'))
+ subpage.setAttribute('no-search', '');
// Render synchronously so neon-animated-pages can select the subpage.
template.if = true;

Powered by Google App Engine
This is Rietveld 408576698