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 if (!loadTimeData.getBoolean('newContentSettings')) { | 5 if (!loadTimeData.getBoolean('newContentSettings')) { |
6 | 6 |
7 cr.define('options', function() { | 7 cr.define('options', function() { |
8 /** @const */ var OptionsPage = options.OptionsPage; | 8 /** @const */ var OptionsPage = options.OptionsPage; |
9 | 9 |
10 ////////////////////////////////////////////////////////////////////////////// | 10 ////////////////////////////////////////////////////////////////////////////// |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 if (cr.isChromeOS) | 69 if (cr.isChromeOS) |
70 UIAccountTweaks.applyGuestModeVisibility(document); | 70 UIAccountTweaks.applyGuestModeVisibility(document); |
71 | 71 |
72 // Cookies filter page --------------------------------------------------- | 72 // Cookies filter page --------------------------------------------------- |
73 $('show-cookies-button').onclick = function(event) { | 73 $('show-cookies-button').onclick = function(event) { |
74 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 74 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
75 OptionsPage.navigateToPage('cookies'); | 75 OptionsPage.navigateToPage('cookies'); |
76 }; | 76 }; |
77 | 77 |
78 var intentsSection = $('intents-section'); | |
79 if (!loadTimeData.getBoolean('enable_web_intents') && intentsSection) | |
80 intentsSection.parentNode.removeChild(intentsSection); | |
81 | |
82 $('content-settings-overlay-confirm').onclick = | 78 $('content-settings-overlay-confirm').onclick = |
83 OptionsPage.closeOverlay.bind(OptionsPage); | 79 OptionsPage.closeOverlay.bind(OptionsPage); |
84 | 80 |
85 $('pepper-flash-cameramic-section').style.display = 'none'; | 81 $('pepper-flash-cameramic-section').style.display = 'none'; |
86 $('pepper-flash-cameramic-exceptions-div').style.display = 'none'; | 82 $('pepper-flash-cameramic-exceptions-div').style.display = 'none'; |
87 }, | 83 }, |
88 }; | 84 }; |
89 | 85 |
90 ContentSettings.updateHandlersEnabledRadios = function(enabled) { | 86 ContentSettings.updateHandlersEnabledRadios = function(enabled) { |
91 var selector = '#content-settings-page input[type=radio][value=' + | 87 var selector = '#content-settings-page input[type=radio][value=' + |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 181 } |
186 | 182 |
187 // Export | 183 // Export |
188 return { | 184 return { |
189 ContentSettings: ContentSettings | 185 ContentSettings: ContentSettings |
190 }; | 186 }; |
191 | 187 |
192 }); | 188 }); |
193 | 189 |
194 } | 190 } |
OLD | NEW |