OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
7 | 7 |
8 ////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////// |
9 // ContentSettings class: | 9 // ContentSettings class: |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 }; | 60 }; |
61 } | 61 } |
62 | 62 |
63 var manageHandlersButton = $('manage-handlers-button'); | 63 var manageHandlersButton = $('manage-handlers-button'); |
64 if (manageHandlersButton) { | 64 if (manageHandlersButton) { |
65 manageHandlersButton.onclick = function(event) { | 65 manageHandlersButton.onclick = function(event) { |
66 OptionsPage.navigateToPage('handlers'); | 66 OptionsPage.navigateToPage('handlers'); |
67 }; | 67 }; |
68 } | 68 } |
69 | 69 |
70 // Chrome-OS specific part. | |
James Hawkins
2012/03/05 17:07:12
Optional nit: This comment is superfluous.
Denis Kuznetsov (DE-MUC)
2012/03/12 10:32:15
Done.
| |
71 if (cr.isChromeOS && AccountsOptions.loggedInAsGuest()) { | |
72 AccountsOptions.disableElementsForGuest( | |
73 $('clear-cookies-on-exit-group')); | |
74 } | |
75 | |
70 // Cookies filter page --------------------------------------------------- | 76 // Cookies filter page --------------------------------------------------- |
71 $('show-cookies-button').onclick = function(event) { | 77 $('show-cookies-button').onclick = function(event) { |
72 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 78 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
73 OptionsPage.navigateToPage('cookies'); | 79 OptionsPage.navigateToPage('cookies'); |
74 }; | 80 }; |
75 | 81 |
76 // Remove from DOM instead of hiding so :last-of-type applies the style | 82 // Remove from DOM instead of hiding so :last-of-type applies the style |
77 // correctly. | 83 // correctly. |
78 var intentsSection = $('intents-section'); | 84 var intentsSection = $('intents-section'); |
79 if (!templateData.enable_web_intents && intentsSection) | 85 if (!templateData.enable_web_intents && intentsSection) |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 'list[mode=' + mode + ']'); | 214 'list[mode=' + mode + ']'); |
209 exceptionsList.patternValidityCheckComplete(pattern, valid); | 215 exceptionsList.patternValidityCheckComplete(pattern, valid); |
210 }; | 216 }; |
211 | 217 |
212 // Export | 218 // Export |
213 return { | 219 return { |
214 ContentSettings: ContentSettings | 220 ContentSettings: ContentSettings |
215 }; | 221 }; |
216 | 222 |
217 }); | 223 }); |
OLD | NEW |