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

Issue 2871993005: Copy some x509_certificate_model_nss functions to src/chromeos (Closed)

Created:
3 years, 7 months ago by stevenjb
Modified:
3 years, 7 months ago
Reviewers:
pmarko, mattm, tbarzic, emaxx
CC:
chromium-reviews, tfarina, stevenjb+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Copy some x509_certificate_model_nss functions to src/chromeos Currently the Chrome OS network configuration UI is in src/chrome. We want to move this to Settings UI which uses the networkingPrivate extension API which is implemented in src/chromeos. For network configuration we need to provide a list of available certificates, including their display names, so we will need to duplicate much of the logic in CertLibrary. This is some initial cleanup work which removes the CertLibrary dependency on chrome/common/net/x509_certificate_model_nss.cc (which in turn depends on chrome/third_party/mozilla_security_manager and contains significantly more code than CertLibrary needs and would be difficult to migrate out of src/chrome). It also removes some unnecessary src/chrome dependencies, and modifies onc_certificate_importer_impl_unittest.cc to use the new helper method instead of its own copied version of GetCertType. BUG=380937 Review-Url: https://codereview.chromium.org/2871993005 Cr-Commit-Position: refs/heads/master@{#472488} Committed: https://chromium.googlesource.com/chromium/src/+/cacb41c8337950175840b754a368cec5c9632b8a

Patch Set 1 #

Patch Set 2 : . #

Total comments: 15

Patch Set 3 : Feedback/cleanup #

Total comments: 2

Patch Set 4 : Handle empty string in Stringize, use OSCertHandle throughout #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -55 lines) Patch
M chrome/browser/chromeos/options/cert_library.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/options/cert_library.cc View 1 2 5 chunks +18 lines, -16 lines 0 comments Download
M chromeos/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A chromeos/network/certificate_helper.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A chromeos/network/certificate_helper.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A chromeos/network/certificate_helper_unittest.cc View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl_unittest.cc View 4 chunks +5 lines, -39 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (12 generated)
stevenjb
3 years, 7 months ago (2017-05-09 22:59:55 UTC) #3
pmarko
LGTM with nits/questions, but I'm not an OWNER of anything :) I know this CL ...
3 years, 7 months ago (2017-05-11 12:32:46 UTC) #4
tbarzic
lgtm though, it would be nice if we could avoid having two copies of the ...
3 years, 7 months ago (2017-05-11 19:48:32 UTC) #5
tbarzic
lgtm though, it would be nice if we could avoid having two copies of the ...
3 years, 7 months ago (2017-05-11 19:48:33 UTC) #6
stevenjb
To answer the top level questions: 1. I don't think Chrome OS ever used the ...
3 years, 7 months ago (2017-05-12 19:27:50 UTC) #8
mattm
Could you clarify a few questions regarding the CL description (and motivation)? The networkingPrivate appears ...
3 years, 7 months ago (2017-05-12 22:27:54 UTC) #13
stevenjb
On Fri, May 12, 2017 at 4:27 PM, <mattm@chromium.org> wrote: > Could you clarify a ...
3 years, 7 months ago (2017-05-12 22:39:48 UTC) #14
emaxx
LGTM with a note. https://codereview.chromium.org/2871993005/diff/40001/chromeos/network/certificate_helper.cc File chromeos/network/certificate_helper.cc (right): https://codereview.chromium.org/2871993005/diff/40001/chromeos/network/certificate_helper.cc#newcode89 chromeos/network/certificate_helper.cc:89: return Stringize(CERT_GetCommonName(&cert_handle->subject), alternative_text); If CERT_GetCommonName() ...
3 years, 7 months ago (2017-05-15 14:14:20 UTC) #15
stevenjb
mattm@, PTAL https://codereview.chromium.org/2871993005/diff/40001/chromeos/network/certificate_helper.cc File chromeos/network/certificate_helper.cc (right): https://codereview.chromium.org/2871993005/diff/40001/chromeos/network/certificate_helper.cc#newcode89 chromeos/network/certificate_helper.cc:89: return Stringize(CERT_GetCommonName(&cert_handle->subject), alternative_text); On 2017/05/15 14:14:20, emaxx ...
3 years, 7 months ago (2017-05-15 15:40:58 UTC) #17
stevenjb
mattm@ - ping
3 years, 7 months ago (2017-05-16 16:39:15 UTC) #18
mattm
lgtm
3 years, 7 months ago (2017-05-17 01:14:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2871993005/80001
3 years, 7 months ago (2017-05-17 15:54:56 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/cacb41c8337950175840b754a368cec5c9632b8a
3 years, 7 months ago (2017-05-17 17:24:45 UTC) #25
afakhry
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/2886213002/ by afakhry@chromium.org. ...
3 years, 7 months ago (2017-05-17 17:54:56 UTC) #26
findit-for-me
3 years, 7 months ago (2017-05-17 18:10:15 UTC) #27
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 472488 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698