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

Issue 182313004: Remove GetPkcs11Id from x509_certificate_model (Closed)

Created:
6 years, 10 months ago by tbarzic
Modified:
6 years, 8 months ago
Reviewers:
stevenjb, sky, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Remove GetPkcs11Id from x509_certificate_model We have the same function in chromeos::CertLoader. CertLibrary, which is the only user of x509_certificate_model::GetPkcs11Id, already depends on the CertLoader, so there is no real reson not to use CertLoader::GetPkcs11IdForCert. Also, update CertLibrary::GetCertIndexByPEM and CertLibrary::GetCertIndexByPkcs11 to work only for a single certificate type (server ca and client certificates respectively), instead of taking the certificate type as param. BUG=236978 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262257

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : .. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -72 lines) Patch
M chrome/browser/chromeos/options/cert_library.h View 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/options/cert_library.cc View 3 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.cc View 1 2 4 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 4 chunks +6 lines, -8 lines 0 comments Download
M chrome/common/net/x509_certificate_model.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/net/x509_certificate_model_nss.cc View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/common/net/x509_certificate_model_openssl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chromeos/cert_loader.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/cert_loader.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
tbarzic
6 years, 9 months ago (2014-03-27 17:02:34 UTC) #1
stevenjb
lgtm
6 years, 9 months ago (2014-03-27 19:43:27 UTC) #2
Ryan Sleevi
I'm curious why the User/Server change. That did not really seem obvious from the CL ...
6 years, 9 months ago (2014-03-27 19:51:44 UTC) #3
tbarzic
On 2014/03/27 19:51:44, Ryan Sleevi wrote: > I'm curious why the User/Server change. That did ...
6 years, 9 months ago (2014-03-27 20:15:43 UTC) #4
tbarzic
On 2014/03/27 20:15:43, tbarzic wrote: > On 2014/03/27 19:51:44, Ryan Sleevi wrote: > > I'm ...
6 years, 9 months ago (2014-03-27 20:20:38 UTC) #5
stevenjb
On 2014/03/27 20:15:43, tbarzic wrote: > On 2014/03/27 19:51:44, Ryan Sleevi wrote: > > I'm ...
6 years, 9 months ago (2014-03-27 20:21:17 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/182313004/diff/40001/chrome/common/net/x509_certificate_model.h File chrome/common/net/x509_certificate_model.h (left): https://codereview.chromium.org/182313004/diff/40001/chrome/common/net/x509_certificate_model.h#oldcode82 chrome/common/net/x509_certificate_model.h:82: std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle); Why haven't you updated x509_certificate_model_nss.cc ?
6 years, 9 months ago (2014-03-27 20:25:20 UTC) #7
tbarzic
https://codereview.chromium.org/182313004/diff/40001/chrome/common/net/x509_certificate_model.h File chrome/common/net/x509_certificate_model.h (left): https://codereview.chromium.org/182313004/diff/40001/chrome/common/net/x509_certificate_model.h#oldcode82 chrome/common/net/x509_certificate_model.h:82: std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle); On 2014/03/27 20:25:21, Ryan Sleevi wrote: ...
6 years, 9 months ago (2014-03-27 20:30:39 UTC) #8
Ryan Sleevi
lgtm
6 years, 9 months ago (2014-03-27 20:31:27 UTC) #9
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 9 months ago (2014-03-27 20:32:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/182313004/60001
6 years, 9 months ago (2014-03-27 20:34:17 UTC) #11
tbarzic
oh, looks like there's no OWNERS file in chrome/common/net/ +sky for owner approval
6 years, 9 months ago (2014-03-27 21:06:36 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 21:16:59 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58071
6 years, 9 months ago (2014-03-27 21:16:59 UTC) #14
sky
LGTM
6 years, 9 months ago (2014-03-27 21:45:41 UTC) #15
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 9 months ago (2014-03-27 22:54:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/182313004/60001
6 years, 9 months ago (2014-03-27 22:57:13 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 02:49:25 UTC) #18
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) crypto_unittests, url_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=136614
6 years, 9 months ago (2014-03-28 02:49:26 UTC) #19
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 9 months ago (2014-03-28 06:44:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/182313004/60001
6 years, 9 months ago (2014-03-28 06:45:22 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 11:02:01 UTC) #22
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=137081
6 years, 9 months ago (2014-03-28 11:02:02 UTC) #23
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 8 months ago (2014-04-02 05:07:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/182313004/60001
6 years, 8 months ago (2014-04-02 05:07:18 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 06:30:28 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=292505
6 years, 8 months ago (2014-04-02 06:30:29 UTC) #27
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 8 months ago (2014-04-07 20:36:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/182313004/60001
6 years, 8 months ago (2014-04-07 20:42:12 UTC) #29
commit-bot: I haz the power
6 years, 8 months ago (2014-04-07 23:54:10 UTC) #30
Message was sent while issue was closed.
Change committed as 262257

Powered by Google App Engine
This is Rietveld 408576698