OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Should match SSLBlockingPageCommands in ssl_blocking_page.cc. | |
6 var SSL_CMD_DONT_PROCEED = 0; | |
7 var SSL_CMD_PROCEED = 1; | |
8 var SSL_CMD_MORE = 2; | |
9 var SSL_CMD_RELOAD = 3; | |
10 var SSL_CMD_HELP = 4; | |
11 var SSL_CMD_CLOCK = 5; | |
12 | |
13 function setupSSLDebuggingInfo() { | 5 function setupSSLDebuggingInfo() { |
14 if (loadTimeData.getString('type') != 'SSL') | 6 if (loadTimeData.getString('type') != 'SSL') |
15 return; | 7 return; |
16 | 8 |
17 // The titles are not internationalized because this is debugging information | 9 // The titles are not internationalized because this is debugging information |
18 // for bug reports, help center posts, etc. | 10 // for bug reports, help center posts, etc. |
19 appendDebuggingField('Subject', loadTimeData.getString('subject')); | 11 appendDebuggingField('Subject', loadTimeData.getString('subject')); |
20 appendDebuggingField('Issuer', loadTimeData.getString('issuer')); | 12 appendDebuggingField('Issuer', loadTimeData.getString('issuer')); |
21 appendDebuggingField('Expires on', loadTimeData.getString('expirationDate')); | 13 appendDebuggingField('Expires on', loadTimeData.getString('expirationDate')); |
22 appendDebuggingField('Current date', loadTimeData.getString('currentDate')); | 14 appendDebuggingField('Current date', loadTimeData.getString('currentDate')); |
23 appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem')); | 15 appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem')); |
24 | 16 |
25 $('error-code').addEventListener('click', toggleDebuggingInfo); | 17 $('error-code').addEventListener('click', toggleDebuggingInfo); |
26 } | 18 } |
OLD | NEW |