OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 * a content exception setting. | 128 * a content exception setting. |
129 */ | 129 */ |
130 ContentSettings.patternValidityCheckComplete = | 130 ContentSettings.patternValidityCheckComplete = |
131 function(type, mode, pattern, valid) { | 131 function(type, mode, pattern, valid) { |
132 var exceptionsList = | 132 var exceptionsList = |
133 document.querySelector('div[contentType=' + type + '] ' + | 133 document.querySelector('div[contentType=' + type + '] ' + |
134 'list[mode=' + mode + ']'); | 134 'list[mode=' + mode + ']'); |
135 exceptionsList.patternValidityCheckComplete(pattern, valid); | 135 exceptionsList.patternValidityCheckComplete(pattern, valid); |
136 }; | 136 }; |
137 | 137 |
| 138 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) { |
| 139 $('clear-cookies-on-exit-label').innerText = label; |
| 140 }; |
| 141 |
138 // Export | 142 // Export |
139 return { | 143 return { |
140 ContentSettings: ContentSettings | 144 ContentSettings: ContentSettings |
141 }; | 145 }; |
142 | 146 |
143 }); | 147 }); |
OLD | NEW |