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

Issue 2891453002: Introduce networkingPrivate.getCertificateLists (Closed)

Created:
3 years, 7 months ago by stevenjb
Modified:
3 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jlklein+watch-closure_chromium.org, oshima+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce networkingPrivate.getCertificateLists This CL: * Adds NetworkCertificateHandler to maintain lists of network certificates (Server CA and User/Client). * Adds a ClientCertPKCS11Id property to ONC to allow configuration UI to use ONC to specify a PKCS#11 certificate identifier. * Adds getCertificateLists to networkingPrivate and networking.onc. BUG=380937 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2891453002 Cr-Commit-Position: refs/heads/master@{#474836} Committed: https://chromium.googlesource.com/chromium/src/+/bbb23b76fd2d8e7f864deff6e70c10bf4fddeb87

Patch Set 1 #

Patch Set 2 : . #

Total comments: 13

Patch Set 3 : Feedback #

Total comments: 2

Patch Set 4 : Rebase, fix histograms, remove from networking.onc #

Total comments: 8

Patch Set 5 : Rebase + Feedback #

Total comments: 12

Patch Set 6 : Rebase + Fix IDL comments and identifiers #

Patch Set 7 : Fix Linux #

Patch Set 8 : Fix test #

Patch Set 9 : Clang format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -82 lines) Patch
M chrome/browser/extensions/api/networking_private/networking_private_apitest.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 4 7 chunks +38 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking_private/chromeos/test.js View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M chromeos/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/client_cert_util.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/client_cert_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A chromeos/network/network_certificate_handler.h View 1 1 chunk +95 lines, -0 lines 0 comments Download
A chromeos/network/network_certificate_handler.cc View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
M chromeos/network/network_handler.h View 3 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/network_handler.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_signature.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/onc/onc_translation_tables.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_translator_onc_to_shill.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_translator_shill_to_onc.cc View 1 2 3 1 chunk +20 lines, -5 lines 0 comments Download
M chromeos/network/onc/onc_translator_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
A chromeos/test/data/network/shill_wifi_eap_tls.json View 1 chunk +13 lines, -0 lines 0 comments Download
A chromeos/test/data/network/translation_of_shill_wifi_eap_tls.onc View 1 chunk +16 lines, -0 lines 0 comments Download
A chromeos/test/data/network/wifi_eap_tls.onc View 1 chunk +17 lines, -0 lines 0 comments Download
M components/onc/docs/onc_spec.md View 1 2 1 chunk +12 lines, -2 lines 0 comments Download
M components/onc/onc_constants.h View 2 chunks +2 lines, -0 lines 0 comments Download
M components/onc/onc_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_api.h View 1 chunk +17 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_api.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_chromeos.cc View 4 chunks +35 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_event_router_chromeos.cc View 1 6 chunks +30 lines, -1 line 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_service_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_service_client.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/extension_event_histogram_value.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/networking_onc.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/api/networking_private.idl View 1 2 3 4 5 6 chunks +37 lines, -0 lines 0 comments Download
M third_party/closure_compiler/externs/networking_private.js View 1 2 3 4 5 5 chunks +38 lines, -0 lines 0 comments Download
M third_party/closure_compiler/interfaces/networking_private_interface.js View 3 chunks +14 lines, -64 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (16 generated)
stevenjb
3 years, 7 months ago (2017-05-16 19:51:01 UTC) #3
tbarzic
https://codereview.chromium.org/2891453002/diff/20001/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc File chrome/browser/extensions/api/networking_private/networking_private_apitest.cc (right): https://codereview.chromium.org/2891453002/diff/20001/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc#newcode15 chrome/browser/extensions/api/networking_private/networking_private_apitest.cc:15: #include "base/json/json_string_value_serializer.h" not needed? https://codereview.chromium.org/2891453002/diff/20001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js File chrome/test/data/extensions/api_test/networking_private/chromeos/test.js (right): https://codereview.chromium.org/2891453002/diff/20001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js#newcode803 ...
3 years, 7 months ago (2017-05-17 22:35:57 UTC) #5
stevenjb
+rdevlin.cronin@ for networking_private.idl change +isherman@ for histograms changes https://codereview.chromium.org/2891453002/diff/20001/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc File chrome/browser/extensions/api/networking_private/networking_private_apitest.cc (right): https://codereview.chromium.org/2891453002/diff/20001/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc#newcode15 chrome/browser/extensions/api/networking_private/networking_private_apitest.cc:15: #include ...
3 years, 7 months ago (2017-05-18 16:30:57 UTC) #7
Ilya Sherman
https://codereview.chromium.org/2891453002/diff/40001/extensions/browser/extension_event_histogram_value.h File extensions/browser/extension_event_histogram_value.h (right): https://codereview.chromium.org/2891453002/diff/40001/extensions/browser/extension_event_histogram_value.h#newcode431 extensions/browser/extension_event_histogram_value.h:431: // python tools/metrics/histograms/update_extension_histograms.py ^^^ https://codereview.chromium.org/2891453002/diff/40001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/2891453002/diff/40001/extensions/browser/extension_function_histogram_value.h#newcode1239 ...
3 years, 7 months ago (2017-05-18 17:23:27 UTC) #8
Devlin
If this is being added to the public API, it needs to go through security ...
3 years, 7 months ago (2017-05-18 21:25:53 UTC) #9
stevenjb
So, because we made chrome.onc (which is just an alias to chrome.networkingPrivate) available to kiosk ...
3 years, 7 months ago (2017-05-19 17:45:59 UTC) #10
tbarzic
yes, that went through security review. I'd just check that the caller has "private" permission ...
3 years, 7 months ago (2017-05-19 18:07:49 UTC) #11
stevenjb
tbarzic@ -Thanks! Can you point me to the security review document for networking.onc? On Fri, ...
3 years, 7 months ago (2017-05-19 18:09:15 UTC) #12
tbarzic
I don't think there's a doc per se. but the gist was that we shouldn't ...
3 years, 7 months ago (2017-05-19 19:58:02 UTC) #13
stevenjb
PTAL tbarzic@ - If there wasn't a security review document, is there an email thread ...
3 years, 7 months ago (2017-05-22 23:26:36 UTC) #14
tbarzic
On 2017/05/22 23:26:36, stevenjb wrote: > PTAL > > tbarzic@ - If there wasn't a ...
3 years, 7 months ago (2017-05-22 23:40:51 UTC) #15
stevenjb
+kerrnel@ - I'm adding a method to the networkingPrivate IDL which passes a list of ...
3 years, 7 months ago (2017-05-22 23:46:13 UTC) #17
Ilya Sherman
enum changes lgtm
3 years, 7 months ago (2017-05-23 00:21:00 UTC) #18
tbarzic
lgtm https://codereview.chromium.org/2891453002/diff/20001/chromeos/network/network_certificate_handler.cc File chromeos/network/network_certificate_handler.cc (right): https://codereview.chromium.org/2891453002/diff/20001/chromeos/network/network_certificate_handler.cc#newcode43 chromeos/network/network_certificate_handler.cc:43: CertLoader::GetPkcs11IdAndSlotForCert(cert, &slot_id); On 2017/05/18 16:30:57, stevenjb wrote: > ...
3 years, 7 months ago (2017-05-23 18:01:58 UTC) #19
Greg K
On 2017/05/22 23:46:13, stevenjb wrote: > +kerrnel@ - I'm adding a method to the networkingPrivate ...
3 years, 7 months ago (2017-05-23 18:41:08 UTC) #20
stevenjb
On 2017/05/23 18:41:08, Greg K wrote: > On 2017/05/22 23:46:13, stevenjb wrote: > > +kerrnel@ ...
3 years, 7 months ago (2017-05-23 19:17:00 UTC) #21
stevenjb
Devlin - PTAL Greg K - Do you have any other concerns? To clarify my ...
3 years, 7 months ago (2017-05-25 00:01:11 UTC) #22
Devlin
idl lgtm; did you need me to look at anything else? > Greg K - ...
3 years, 7 months ago (2017-05-25 16:17:15 UTC) #23
stevenjb
https://codereview.chromium.org/2891453002/diff/80001/extensions/common/api/networking_private.idl File extensions/common/api/networking_private.idl (right): https://codereview.chromium.org/2891453002/diff/80001/extensions/common/api/networking_private.idl#newcode848 extensions/common/api/networking_private.idl:848: // PEM for server ca certificatess. On 2017/05/25 16:17:15, ...
3 years, 7 months ago (2017-05-25 17:36:01 UTC) #25
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/2891453002/120001
3 years, 7 months ago (2017-05-25 17:36:45 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/304763) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-25 17:54:51 UTC) #30
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/2891453002/140001
3 years, 7 months ago (2017-05-25 18:41:41 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/434962)
3 years, 7 months ago (2017-05-25 20:40:44 UTC) #35
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/2891453002/180001
3 years, 7 months ago (2017-05-25 21:02:59 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 23:05:04 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/bbb23b76fd2d8e7f864deff6e70c...

Powered by Google App Engine
This is Rietveld 408576698