| 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 AccountsOptions.applyGuestModeVisibility(document); |
| 75 |
| 74 // Cookies filter page --------------------------------------------------- | 76 // Cookies filter page --------------------------------------------------- |
| 75 $('show-cookies-button').onclick = function(event) { | 77 $('show-cookies-button').onclick = function(event) { |
| 76 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 78 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
| 77 OptionsPage.navigateToPage('cookies'); | 79 OptionsPage.navigateToPage('cookies'); |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 // 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 |
| 81 // correctly. | 83 // correctly. |
| 82 var intentsSection = $('intents-section'); | 84 var intentsSection = $('intents-section'); |
| 83 if (!templateData.enable_web_intents && intentsSection) | 85 if (!templateData.enable_web_intents && intentsSection) |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 'list[mode=' + mode + ']'); | 219 'list[mode=' + mode + ']'); |
| 218 exceptionsList.patternValidityCheckComplete(pattern, valid); | 220 exceptionsList.patternValidityCheckComplete(pattern, valid); |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 // Export | 223 // Export |
| 222 return { | 224 return { |
| 223 ContentSettings: ContentSettings | 225 ContentSettings: ContentSettings |
| 224 }; | 226 }; |
| 225 | 227 |
| 226 }); | 228 }); |
| OLD | NEW |