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

Issue 144423007: Make NSSCertDatabase::ListCerts work async on a worker thread. (Closed)

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

Description

Make NSSCertDatabase::ListCerts async and use the worker pool for actual certificate listing. BUG=340460 TBR=sky@chromium.org (for rename in chrome/browser/certificate_manager_model.cc) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249334

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : . #

Patch Set 4 : diff to master (for trybots) #

Patch Set 5 : . #

Patch Set 6 : win/mac/android builds #

Patch Set 7 : back to interesting diff #

Patch Set 8 : a #

Patch Set 9 : aa #

Total comments: 1

Patch Set 10 : rebasing #

Patch Set 11 : filterring contained to NSSCertDatabaseChromeOS #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : rebase to tot #

Total comments: 16

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : #

Patch Set 18 : . #

Total comments: 22

Patch Set 19 : . #

Patch Set 20 : . #

Patch Set 21 : added bug # #

Total comments: 17

Patch Set 22 : stevenjb #

Patch Set 23 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -107 lines) Patch
M chrome/browser/certificate_manager_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/cert_loader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +7 lines, -17 lines 0 comments Download
M chromeos/cert_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +10 lines, -40 lines 0 comments Download
M chromeos/cert_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 12 13 14 15 2 chunks +1 line, -1 line 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chromeos/network/network_cert_migrator_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chromeos/network/network_connection_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download
M net/cert/nss_cert_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +28 lines, -1 line 0 comments Download
M net/cert/nss_cert_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +44 lines, -12 lines 0 comments Download
M net/cert/nss_cert_database_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +12 lines, -1 line 0 comments Download
M net/cert/nss_cert_database_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +37 lines, -11 lines 0 comments Download
M net/cert/nss_cert_database_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +61 lines, -4 lines 0 comments Download
M net/cert/nss_cert_database_unittest.cc View 1 3 chunks +29 lines, -1 line 0 comments Download
M net/cert/nss_profile_filter_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +11 lines, -12 lines 0 comments Download
M net/cert/nss_profile_filter_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +22 lines, -2 lines 0 comments Download
M net/cert/nss_profile_filter_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
tbarzic
I still have to add some comments, but can you see if this looks ok? ...
6 years, 11 months ago (2014-01-24 04:32:37 UTC) #1
mattm
Not sure about moving the filtering into the parent class.. maybe an alternate approach would ...
6 years, 11 months ago (2014-01-28 00:51:48 UTC) #2
Ryan Sleevi
This CL does not match its description. It says it's about making ListCerts async, but ...
6 years, 11 months ago (2014-01-28 02:11:22 UTC) #3
Ryan Sleevi
On 2014/01/28 00:51:48, mattm wrote: > Not sure about moving the filtering into the parent ...
6 years, 11 months ago (2014-01-28 02:18:26 UTC) #4
tbarzic
On 2014/01/28 02:11:22, Ryan Sleevi wrote: > This CL does not match its description. > ...
6 years, 11 months ago (2014-01-28 02:22:15 UTC) #5
tbarzic
On 2014/01/28 02:18:26, Ryan Sleevi wrote: > On 2014/01/28 00:51:48, mattm wrote: > > Not ...
6 years, 11 months ago (2014-01-28 02:31:26 UTC) #6
Ryan Sleevi
https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.cc File net/cert/nss_cert_database.cc (right): https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.cc#newcode360 net/cert/nss_cert_database.cc:360: CHECK(certs); unnecessary check - certs->clear() will error if certs ...
6 years, 10 months ago (2014-01-29 02:24:20 UTC) #7
tbarzic
https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.cc File net/cert/nss_cert_database.cc (right): https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.cc#newcode360 net/cert/nss_cert_database.cc:360: CHECK(certs); On 2014/01/29 02:24:20, Ryan Sleevi wrote: > unnecessary ...
6 years, 10 months ago (2014-01-29 20:50:52 UTC) #8
Ryan Sleevi
API works for me, mod comment below and nits. LGTM https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.h File net/cert/nss_cert_database.h (right): https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.h#newcode115 ...
6 years, 10 months ago (2014-01-30 04:16:30 UTC) #9
mattm
https://codereview.chromium.org/144423007/diff/610001/chromeos/cert_loader.h File chromeos/cert_loader.h (right): https://codereview.chromium.org/144423007/diff/610001/chromeos/cert_loader.h#newcode64 chromeos/cert_loader.h:64: // expexts it to stay alive at least until ...
6 years, 10 months ago (2014-01-30 04:34:36 UTC) #10
tbarzic
https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.h File net/cert/nss_cert_database.h (right): https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.h#newcode115 net/cert/nss_cert_database.h:115: ListCertsCallback; On 2014/01/30 04:16:30, Ryan Sleevi wrote: > On ...
6 years, 10 months ago (2014-02-03 23:42:04 UTC) #11
mattm
lgtm
6 years, 10 months ago (2014-02-04 02:28:38 UTC) #12
Ryan Sleevi
lgtm https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.h File net/cert/nss_cert_database.h (right): https://codereview.chromium.org/144423007/diff/530001/net/cert/nss_cert_database.h#newcode115 net/cert/nss_cert_database.h:115: ListCertsCallback; On 2014/02/03 23:42:04, tbarzic wrote: > On ...
6 years, 10 months ago (2014-02-04 02:50:19 UTC) #13
tbarzic
+Steven for chromeos bits
6 years, 10 months ago (2014-02-04 18:56:05 UTC) #14
stevenjb
https://codereview.chromium.org/144423007/diff/670001/chrome/browser/certificate_manager_model.cc File chrome/browser/certificate_manager_model.cc (right): https://codereview.chromium.org/144423007/diff/670001/chrome/browser/certificate_manager_model.cc#newcode93 chrome/browser/certificate_manager_model.cc:93: DVLOG(1) << "refresh listing certs..."; TODO(): make this async ...
6 years, 10 months ago (2014-02-04 22:28:41 UTC) #15
tbarzic
https://codereview.chromium.org/144423007/diff/670001/chrome/browser/certificate_manager_model.cc File chrome/browser/certificate_manager_model.cc (right): https://codereview.chromium.org/144423007/diff/670001/chrome/browser/certificate_manager_model.cc#newcode93 chrome/browser/certificate_manager_model.cc:93: DVLOG(1) << "refresh listing certs..."; On 2014/02/04 22:28:42, stevenjb ...
6 years, 10 months ago (2014-02-04 23:12:37 UTC) #16
stevenjb
lgtm https://codereview.chromium.org/144423007/diff/670001/net/cert/nss_cert_database.cc File net/cert/nss_cert_database.cc (right): https://codereview.chromium.org/144423007/diff/670001/net/cert/nss_cert_database.cc#newcode84 net/cert/nss_cert_database.cc:84: CertificateList* raw_certs = certs.get(); On 2014/02/04 23:12:38, tbarzic ...
6 years, 10 months ago (2014-02-05 00:24:59 UTC) #17
tbarzic
The CQ bit was checked by tbarzic@chromium.org
6 years, 10 months ago (2014-02-06 01:50:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/144423007/1110001
6 years, 10 months ago (2014-02-06 01:54:56 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 10:24:21 UTC) #20
Message was sent while issue was closed.
Change committed as 249334

Powered by Google App Engine
This is Rietveld 408576698