| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // AdvancedOptions class | 10 // AdvancedOptions class |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 OptionsPage.prototype.initializePage.call(this); | 29 OptionsPage.prototype.initializePage.call(this); |
| 30 | 30 |
| 31 // Set up click handlers for buttons. | 31 // Set up click handlers for buttons. |
| 32 $('privacyContentSettingsButton').onclick = function(event) { | 32 $('privacyContentSettingsButton').onclick = function(event) { |
| 33 OptionsPage.navigateToPage('content'); | 33 OptionsPage.navigateToPage('content'); |
| 34 OptionsPage.showTab($('cookies-nav-tab')); | 34 OptionsPage.showTab($('cookies-nav-tab')); |
| 35 chrome.send('coreOptionsUserMetricsAction', | 35 chrome.send('coreOptionsUserMetricsAction', |
| 36 ['Options_ContentSettings']); | 36 ['Options_ContentSettings']); |
| 37 }; | 37 }; |
| 38 $('privacyClearDataButton').onclick = function(event) { | 38 $('privacyClearDataButton').onclick = function(event) { |
| 39 OptionsPage.navigateToPage('clearBrowserData'); | 39 OptionsPage.navigateToPage('clearBrowserDataOverlay'); |
| 40 chrome.send('coreOptionsUserMetricsAction', ['Options_ClearData']); | 40 chrome.send('coreOptionsUserMetricsAction', ['Options_ClearData']); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // 'metricsReportingEnabled' element is only present on Chrome branded | 43 // 'metricsReportingEnabled' element is only present on Chrome branded |
| 44 // builds. | 44 // builds. |
| 45 if ($('metricsReportingEnabled')) { | 45 if ($('metricsReportingEnabled')) { |
| 46 $('metricsReportingEnabled').onclick = function(event) { | 46 $('metricsReportingEnabled').onclick = function(event) { |
| 47 chrome.send('metricsReportingCheckboxAction', | 47 chrome.send('metricsReportingCheckboxAction', |
| 48 [String(event.target.checked)]); | 48 [String(event.target.checked)]); |
| 49 }; | 49 }; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 if (proxySectionElm) | 284 if (proxySectionElm) |
| 285 proxySectionElm.parentNode.removeChild(proxySectionElm); | 285 proxySectionElm.parentNode.removeChild(proxySectionElm); |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 // Export | 288 // Export |
| 289 return { | 289 return { |
| 290 AdvancedOptions: AdvancedOptions | 290 AdvancedOptions: AdvancedOptions |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 }); | 293 }); |
| OLD | NEW |