| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 ////////////////////////////////////////////////////////////////////////////// | 9 ////////////////////////////////////////////////////////////////////////////// |
| 10 // ContentSettings class: | 10 // ContentSettings class: |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 * a content exception setting. | 121 * a content exception setting. |
| 122 */ | 122 */ |
| 123 ContentSettings.patternValidityCheckComplete = | 123 ContentSettings.patternValidityCheckComplete = |
| 124 function(type, mode, pattern, valid) { | 124 function(type, mode, pattern, valid) { |
| 125 var exceptionsList = | 125 var exceptionsList = |
| 126 document.querySelector('div[contentType=' + type + '] ' + | 126 document.querySelector('div[contentType=' + type + '] ' + |
| 127 'list[mode=' + mode + ']'); | 127 'list[mode=' + mode + ']'); |
| 128 exceptionsList.patternValidityCheckComplete(pattern, valid); | 128 exceptionsList.patternValidityCheckComplete(pattern, valid); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) { | |
| 132 $('clear-cookies-on-exit-label').innerText = label; | |
| 133 }; | |
| 134 | |
| 135 // Export | 131 // Export |
| 136 return { | 132 return { |
| 137 ContentSettings: ContentSettings | 133 ContentSettings: ContentSettings |
| 138 }; | 134 }; |
| 139 | 135 |
| 140 }); | 136 }); |
| OLD | NEW |