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

Issue 2815048: Minor clean-up tasks that were TODO(snej) (Closed)

Created:
10 years, 5 months ago by Ryan Sleevi
Modified:
9 years, 7 months ago
Reviewers:
wtc, davidben
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Visibility:
Public.

Description

Minor clean-up tasks that were TODO(snej) Rename Principal->CertPrincipal, Policy->CertPolicy, both of which are merely syntatic fluff. Rename Fingerprint->SHA1Fingerprint, which is more important since those using the fingerprint, such as the unit tests, were truly hardcoded against SHA-1 fingerprints, and if the fingerprint ever changed, wouldn't cause errors until run time. R=wtc BUG=None TEST=Compilers stay green Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52789

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase to trunk #

Total comments: 36

Patch Set 3 : Address comments by wtc #

Total comments: 5

Patch Set 4 : Rebase on trunk prior to landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -119 lines) Patch
M chrome/browser/page_info_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_host_state.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ssl/ssl_host_state.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_host_state_unittest.cc View 1 chunk +12 lines, -12 lines 0 comments Download
M chrome/browser/ssl/ssl_policy.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ssl/ssl_policy_backend.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ssl/ssl_policy_backend.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/ev_root_ca_metadata.h View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/ev_root_ca_metadata.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/x509_cert_types.h View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M net/base/x509_certificate.h View 7 chunks +8 lines, -42 lines 0 comments Download
M net/base/x509_certificate.cc View 1 2 3 5 chunks +41 lines, -15 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M net/base/x509_certificate_nss.cc View 3 3 chunks +4 lines, -4 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 12 chunks +20 lines, -20 lines 0 comments Download
M net/base/x509_certificate_win.cc View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Ryan Sleevi
Wan-Teh, This is a follow-up to Jens' original CL at http://codereview.chromium.org/1128008 , which is why ...
10 years, 5 months ago (2010-07-04 09:41:30 UTC) #1
Ryan Sleevi
http://codereview.chromium.org/2815048/diff/1/19 File net/socket/ssl_client_socket_nss_factory.cc (right): http://codereview.chromium.org/2815048/diff/1/19#newcode32 net/socket/ssl_client_socket_nss_factory.cc:32: return new SSLClientSocketMac(transport_socket, hostname, ssl_config); I'm not sure if ...
10 years, 5 months ago (2010-07-04 09:44:35 UTC) #2
wtc
LGTM. Thanks for doing the cleanup. Please break this CL into two CLs. The ssl_client_socket_nss.cc ...
10 years, 5 months ago (2010-07-14 23:31:19 UTC) #3
wtc
More comments on ssl_client_socket_nss.cc. I found two off-by-one bugs (marked with "BUG" below). http://codereview.chromium.org/2815048/diff/10001/11017 File ...
10 years, 5 months ago (2010-07-15 00:41:34 UTC) #4
wtc
Ryan: before you make any of my suggested changes, please first split ssl_client_socket_nss.cc into a ...
10 years, 5 months ago (2010-07-15 00:49:00 UTC) #5
wtc
On 2010/07/04 09:41:30, rsleevi wrote: > > The problem is that NSS_CmpCertChainWCANames doesn't normalize names, ...
10 years, 5 months ago (2010-07-15 00:56:17 UTC) #6
Ryan Sleevi
I pulled out the ssl_client_socket_nss changes, and will be posting them as a separate CL. ...
10 years, 5 months ago (2010-07-15 13:13:15 UTC) #7
Ryan Sleevi
On 2010/07/15 13:13:15, rsleevi wrote: > I pulled out the ssl_client_socket_nss changes, and will be ...
10 years, 5 months ago (2010-07-15 13:30:12 UTC) #8
Ryan Sleevi
http://codereview.chromium.org/2815048/diff/10001/11017 File net/socket/ssl_client_socket_nss.cc (right): http://codereview.chromium.org/2815048/diff/10001/11017#newcode413 net/socket/ssl_client_socket_nss.cc:413: // Import into NSS. This is because a SecCertificateRef ...
10 years, 5 months ago (2010-07-15 14:23:21 UTC) #9
wtc
LGTM! Remember to update the CL's description before you check in. (The second half of ...
10 years, 5 months ago (2010-07-15 14:59:28 UTC) #10
wtc
http://codereview.chromium.org/2815048/diff/10001/11017 File net/socket/ssl_client_socket_nss.cc (right): http://codereview.chromium.org/2815048/diff/10001/11017#newcode1532 net/socket/ssl_client_socket_nss.cc:1532: x509_chain.resize(CFArrayGetCount(os_chain) - 1); Ah, you're right. The second "BUG" ...
10 years, 5 months ago (2010-07-15 15:02:19 UTC) #11
wtc
http://codereview.chromium.org/2815048/diff/24001/25010 File net/base/x509_cert_types.h (left): http://codereview.chromium.org/2815048/diff/24001/25010#oldcode40 net/base/x509_cert_types.h:40: Nit: I think it's good to keep this blank ...
10 years, 5 months ago (2010-07-15 15:08:23 UTC) #12
Ryan Sleevi
Just a quick note over my lunch break on how the change might work. I ...
10 years, 5 months ago (2010-07-15 18:58:32 UTC) #13
davidben
On 2010/07/15 18:58:32, rsleevi wrote: > My investigations into the SecCertificate() and > CSSM/CDSA implementation ...
10 years, 5 months ago (2010-07-15 23:39:39 UTC) #14
Ryan Sleevi
On 2010/07/15 23:39:39, David Benjamin wrote: > On 2010/07/15 18:58:32, rsleevi wrote: > > My ...
10 years, 5 months ago (2010-07-16 00:13:46 UTC) #15
Ryan Sleevi
FWIW, though I mention 10.5.7/10.5.8, the BEGIN_SECAPI goes back to 10.1 (see http://www.opensource.apple.com/source/Security/Security-28/Keychain/SecKeychainAPI.cpp )
10 years, 5 months ago (2010-07-16 00:28:18 UTC) #16
davidben
On 2010/07/16 00:13:46, rsleevi wrote: > Look for #define BEGIN_SECAPI > for libsecurity_keychain_36620 (10.5.8), it's ...
10 years, 5 months ago (2010-07-16 00:35:00 UTC) #17
davidben
On 2010/07/16 00:35:00, David Benjamin wrote: > Perhaps they tried to remove the global lock ...
10 years, 5 months ago (2010-07-16 00:38:22 UTC) #18
Ryan Sleevi
On 2010/07/16 00:38:22, David Benjamin wrote: > On 2010/07/16 00:35:00, David Benjamin wrote: > > ...
10 years, 5 months ago (2010-07-16 00:51:11 UTC) #19
wtc
10 years, 5 months ago (2010-07-16 19:23:32 UTC) #20
http://codereview.chromium.org/2815048/diff/24001/25011
File net/base/x509_certificate.cc (right):

http://codereview.chromium.org/2815048/diff/24001/25011#newcode77
net/base/x509_certificate.cc:77: // TODO(rsleevi): Fix the cache to hold
references, as there is a race where:
rsleevi: even with two shots of coffee, I still couldn't
achieve the concentration to finish reading your long
comment.  So I decided to give up and just review your fix
in http://codereview.chromium.org/2836055/show.

I believe I still gained a full understanding of the bug and
the difficulty of fixing it.

Powered by Google App Engine
This is Rietveld 408576698