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

Issue 5162001: X.509-related cleanup (Closed)

Created:
10 years, 1 month ago by Ryan Sleevi
Modified:
9 years, 7 months ago
Reviewers:
bulach, wtc
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman
Visibility:
Public.

Description

Clean-up style issues in net:: related to X.509 data-types, eliminating unnecessary includes and marking platform-specific implementations as such. Also clearly document that CertPrincipal::Matches() is not suitable for security-relevant name checks. In addition, because x509_cert_types.h no longer includes base/singleton.h, fix all the classes that broke because they weren't including what they used. BUG=none TEST=existing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66941

Patch Set 1 : #

Patch Set 2 : Fix build breakage #

Total comments: 16

Patch Set 3 : Feedback #

Total comments: 2

Patch Set 4 : More files broke #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -206 lines) Patch
M chrome/browser/dom_ui/constrained_html_ui.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/dom_ui/slideshow_ui.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents_wrapper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/html_dialog_view_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/cert_database_nss_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/x509_cert_types.h View 1 2 3 chunks +8 lines, -20 lines 0 comments Download
M net/base/x509_cert_types.cc View 3 chunks +0 lines, -60 lines 0 comments Download
M net/base/x509_cert_types_mac.cc View 1 2 8 chunks +132 lines, -114 lines 0 comments Download
A + net/base/x509_cert_types_mac_unittest.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M net/base/x509_certificate.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/x509_certificate.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/net.gyp View 3 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 2 chunks +12 lines, -6 lines 0 comments Download
M net/socket_stream/socket_stream_job.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Ryan Sleevi
bulach: Would you mind taking a look? This is (almost) purely a style clean-up patch, ...
10 years, 1 month ago (2010-11-17 09:19:03 UTC) #1
bulach
LGTM I love the smell of red patches :) (but not so much when it ...
10 years, 1 month ago (2010-11-17 12:16:50 UTC) #2
wtc
LGTM. I'm glad you can simply remove operator<<. http://codereview.chromium.org/5162001/diff/13001/chrome/browser/dom_ui/constrained_html_ui.cc File chrome/browser/dom_ui/constrained_html_ui.cc (right): http://codereview.chromium.org/5162001/diff/13001/chrome/browser/dom_ui/constrained_html_ui.cc#newcode7 chrome/browser/dom_ui/constrained_html_ui.cc:7: #include ...
10 years, 1 month ago (2010-11-17 21:31:53 UTC) #3
Ryan Sleevi
Thanks. Comments and feedback addressed in patchset 3. Depending on the trybots, there may be ...
10 years, 1 month ago (2010-11-18 08:21:31 UTC) #4
wtc
LGTM. Keep the #include "base/singleton.h" changes in this CL. It wasn't obvious to me they're ...
10 years, 1 month ago (2010-11-18 23:12:41 UTC) #5
Ryan Sleevi
10 years, 1 month ago (2010-11-18 23:17:14 UTC) #6
Thanks. I'll look to land sometime this weekend.

http://codereview.chromium.org/5162001/diff/28001/net/net.gyp
File net/net.gyp (right):

http://codereview.chromium.org/5162001/diff/28001/net/net.gyp#newcode869
net/net.gyp:869: 'base/x509_cert_types_mac_unittest.cc',
On 2010/11/18 23:12:46, wtc wrote:
> Does renaming the file this way automatically make it a
> Mac-only file?

Yes, build\common.gypi has an exclude glob setup on lines 622-626. Relevant is
the first exclude rule:

          ['OS!="mac"', {
            'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.(h|cc)$'],
                          ['exclude', '(^|/)(cocoa|mac)/'],
                          ['exclude', '\\.mm?$' ] ],
          }],

Powered by Google App Engine
This is Rietveld 408576698