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 |