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 */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
7 | 7 |
8 ////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////// |
9 // ContentSettings class: | 9 // ContentSettings class: |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 }; | 64 }; |
65 } | 65 } |
66 | 66 |
67 var manageHandlersButton = $('manage-handlers-button'); | 67 var manageHandlersButton = $('manage-handlers-button'); |
68 if (manageHandlersButton) { | 68 if (manageHandlersButton) { |
69 manageHandlersButton.onclick = function(event) { | 69 manageHandlersButton.onclick = function(event) { |
70 OptionsPage.navigateToPage('handlers'); | 70 OptionsPage.navigateToPage('handlers'); |
71 }; | 71 }; |
72 } | 72 } |
73 | 73 |
| 74 if (cr.isChromeOS) |
| 75 AccountsOptions.applyGuestModeVisibility(document); |
| 76 |
74 // Cookies filter page --------------------------------------------------- | 77 // Cookies filter page --------------------------------------------------- |
75 $('show-cookies-button').onclick = function(event) { | 78 $('show-cookies-button').onclick = function(event) { |
76 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 79 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
77 OptionsPage.navigateToPage('cookies'); | 80 OptionsPage.navigateToPage('cookies'); |
78 }; | 81 }; |
79 | 82 |
80 // Remove from DOM instead of hiding so :last-of-type applies the style | 83 // Remove from DOM instead of hiding so :last-of-type applies the style |
81 // correctly. | 84 // correctly. |
82 var intentsSection = $('intents-section'); | 85 var intentsSection = $('intents-section'); |
83 if (!templateData.enable_web_intents && intentsSection) | 86 if (!templateData.enable_web_intents && intentsSection) |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 'list[mode=' + mode + ']'); | 220 'list[mode=' + mode + ']'); |
218 exceptionsList.patternValidityCheckComplete(pattern, valid); | 221 exceptionsList.patternValidityCheckComplete(pattern, valid); |
219 }; | 222 }; |
220 | 223 |
221 // Export | 224 // Export |
222 return { | 225 return { |
223 ContentSettings: ContentSettings | 226 ContentSettings: ContentSettings |
224 }; | 227 }; |
225 | 228 |
226 }); | 229 }); |
OLD | NEW |