Chromium Code Reviews| Index: chrome/browser/resources/options/content_settings.js |
| diff --git a/chrome/browser/resources/options/content_settings.js b/chrome/browser/resources/options/content_settings.js |
| index a9a80bb3d56b5bccd526949fdd10e4d193501511..46af5315fee1538a2f9781213dc0185345cfbd70 100644 |
| --- a/chrome/browser/resources/options/content_settings.js |
| +++ b/chrome/browser/resources/options/content_settings.js |
| @@ -99,10 +99,7 @@ cr.define('options', function() { |
| ' list[mode=normal]'); |
| exceptionsList.reset(); |
| - for (var i = 0; i < list.length; i++) { |
| - exceptionsList.addException(list[i]); |
| - } |
| - exceptionsList.redraw(); |
| + exceptionsList.addExceptions(list); |
|
arv (Not doing code reviews)
2011/01/12 00:42:32
You could also have used startBatchUpdates() and e
|
| }; |
| ContentSettings.setOTRExceptions = function(type, list) { |
| @@ -113,10 +110,7 @@ cr.define('options', function() { |
| exceptionsList.parentNode.classList.remove('hidden'); |
| exceptionsList.reset(); |
| - for (var i = 0; i < list.length; i++) { |
| - exceptionsList.addException(list[i]); |
| - } |
| - exceptionsList.redraw(); |
| + exceptionsList.addExceptions(list); |
| }; |
| /** |