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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 ['Options_LanuageAndSpellCheckSettings']); | 69 ['Options_LanuageAndSpellCheckSettings']); |
70 }; | 70 }; |
71 | 71 |
72 if (cr.isWindows || cr.isMac) { | 72 if (cr.isWindows || cr.isMac) { |
73 $('certificatesManageButton').onclick = function(event) { | 73 $('certificatesManageButton').onclick = function(event) { |
74 chrome.send('showManageSSLCertificates'); | 74 chrome.send('showManageSSLCertificates'); |
75 }; | 75 }; |
76 } else { | 76 } else { |
77 $('certificatesManageButton').onclick = function(event) { | 77 $('certificatesManageButton').onclick = function(event) { |
78 OptionsPage.navigateToPage('certificates'); | 78 OptionsPage.navigateToPage('certificates'); |
79 OptionsPage.showTab($('personal-certs-nav-tab')); | |
80 chrome.send('coreOptionsUserMetricsAction', | 79 chrome.send('coreOptionsUserMetricsAction', |
81 ['Options_ManageSSLCertificates']); | 80 ['Options_ManageSSLCertificates']); |
82 }; | 81 }; |
83 } | 82 } |
84 | 83 |
85 if (!cr.isChromeOS) { | 84 if (!cr.isChromeOS) { |
86 $('proxiesConfigureButton').onclick = function(event) { | 85 $('proxiesConfigureButton').onclick = function(event) { |
87 chrome.send('showNetworkProxySettings'); | 86 chrome.send('showNetworkProxySettings'); |
88 }; | 87 }; |
89 $('downloadLocationChangeButton').onclick = function(event) { | 88 $('downloadLocationChangeButton').onclick = function(event) { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 proxySectionElm.parentNode.removeChild(proxySectionElm); | 271 proxySectionElm.parentNode.removeChild(proxySectionElm); |
273 } | 272 } |
274 }; | 273 }; |
275 | 274 |
276 // Export | 275 // Export |
277 return { | 276 return { |
278 AdvancedOptions: AdvancedOptions | 277 AdvancedOptions: AdvancedOptions |
279 }; | 278 }; |
280 | 279 |
281 }); | 280 }); |
OLD | NEW |