Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: chrome/browser/resources/security_warnings/ssl.js

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set callback to DoNothing close to where it's used Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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. 5 // Should match SSLBlockingPageCommands in ssl_blocking_page.h.
felt 2015/03/13 19:18:11 This file needs to be rebased. As of https://coder
estark 2015/03/16 23:40:52 Done.
6 var SSL_CMD_DONT_PROCEED = 0; 6 var SSL_CMD_DONT_PROCEED = 0;
7 var SSL_CMD_PROCEED = 1; 7 var SSL_CMD_PROCEED = 1;
8 var SSL_CMD_MORE = 2; 8 var SSL_CMD_MORE = 2;
9 var SSL_CMD_RELOAD = 3; 9 var SSL_CMD_RELOAD = 3;
10 var SSL_CMD_HELP = 4; 10 var SSL_CMD_HELP = 4;
11 var SSL_CMD_CLOCK = 5; 11 var SSL_CMD_CLOCK = 5;
12 var SSL_CMD_DO_REPORT = 6;
13 var SSL_CMD_DONT_REPORT = 7;
12 14
13 function setupSSLDebuggingInfo() { 15 function setupSSLDebuggingInfo() {
14 if (loadTimeData.getString('type') != 'SSL') 16 if (loadTimeData.getString('type') != 'SSL')
15 return; 17 return;
16 18
17 // The titles are not internationalized because this is debugging information 19 // The titles are not internationalized because this is debugging information
18 // for bug reports, help center posts, etc. 20 // for bug reports, help center posts, etc.
19 appendDebuggingField('Subject', loadTimeData.getString('subject')); 21 appendDebuggingField('Subject', loadTimeData.getString('subject'));
20 appendDebuggingField('Issuer', loadTimeData.getString('issuer')); 22 appendDebuggingField('Issuer', loadTimeData.getString('issuer'));
21 appendDebuggingField('Expires on', loadTimeData.getString('expirationDate')); 23 appendDebuggingField('Expires on', loadTimeData.getString('expirationDate'));
22 appendDebuggingField('Current date', loadTimeData.getString('currentDate')); 24 appendDebuggingField('Current date', loadTimeData.getString('currentDate'));
23 appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem')); 25 appendDebuggingField('PEM encoded chain', loadTimeData.getString('pem'));
24 26
25 $('error-code').addEventListener('click', toggleDebuggingInfo); 27 $('error-code').addEventListener('click', toggleDebuggingInfo);
26 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698