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

Unified Diff: chrome/browser/resources/options/options_page.js

Issue 11193013: settings: fix search (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « chrome/browser/resources/options/options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/options_page.js
diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js
index 8a1b37531310e8c9e0a3c05fa35ddb06fcaefd30..a10ab3c9e557c81b131dd7de85a248452af38e54 100644
--- a/chrome/browser/resources/options/options_page.js
+++ b/chrome/browser/resources/options/options_page.js
@@ -500,6 +500,11 @@ cr.define('options', function() {
overlay.associatedSection =
this.findSectionForNode_(associatedControls[0]);
}
+
+ // Sanity check.
Dan Beam 2012/10/16 22:27:45 it's possible that you'd wrap this in an <if expr=
Evan Stade 2012/10/16 22:57:39 since registerOverlay is called at startup, this c
+ for (var i = 0; i < associatedControls.length; ++i) {
+ assert(associatedControls[i], 'Invalid element passed.');
+ }
}
// Reverse the button strip for views. See the documentation of
« no previous file with comments | « chrome/browser/resources/options/options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698