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

Issue 547553005: Make ONCCertificateImporter async. (Closed)

Created:
6 years, 3 months ago by pneubeck (no reviews)
Modified:
6 years, 3 months ago
Reviewers:
Joao da Silva, eroman
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, eroman, davemoore+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@nss_util_deadcode
Project:
chromium
Visibility:
Public.

Description

Make ONCCertificateImporter async. This prepares for the new CertDatabase keyed service, which will have stricter threading restrictions. https://codereview.chromium.org/419013003/ Before, ONCCertificateImporter accessed the NSSCertDatabase from the UI thread and blocked on certificate store operations. Now, the import itself is asychronous and calls back on completion. While there, this also removes the GMock of the importer. BUG=413219 Committed: https://crrev.com/bc656c0e7b7bd67fb28e5a880d21b9510ebd3e3a Cr-Commit-Position: refs/heads/master@{#295534}

Patch Set 1 : #

Patch Set 2 : Simplified NSSCertDatabase creation in unit test. #

Total comments: 18

Patch Set 3 : Addressed comments. #

Total comments: 1

Patch Set 4 : Fixed compilation. #

Total comments: 6

Patch Set 5 : Fixed comment. Removed logging. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -324 lines) Patch
M chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc View 1 2 3 18 chunks +92 lines, -74 lines 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/user_network_configuration_updater.cc View 4 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 2 chunks +47 lines, -26 lines 0 comments Download
M chromeos/chromeos.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M chromeos/network/onc/mock_certificate_importer.h View 1 chunk +0 lines, -31 lines 0 comments Download
D chromeos/network/onc/mock_certificate_importer.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer.h View 1 2 2 chunks +17 lines, -11 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl.h View 1 2 4 chunks +38 lines, -27 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl.cc View 1 2 13 chunks +117 lines, -79 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl_unittest.cc View 1 2 12 chunks +60 lines, -52 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
pneubeck (no reviews)
ptal
6 years, 3 months ago (2014-09-12 14:41:20 UTC) #4
Joao da Silva
Looks good to me. The external interface is fine but the callbacks-in-callbacks code can be ...
6 years, 3 months ago (2014-09-15 12:38:24 UTC) #8
pneubeck (no reviews)
https://codereview.chromium.org/547553005/diff/110001/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc File chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc (right): https://codereview.chromium.org/547553005/diff/110001/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc#newcode134 chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc:134: unsigned int call_count_; On 2014/09/15 12:38:24, Joao da Silva ...
6 years, 3 months ago (2014-09-17 12:44:22 UTC) #10
pneubeck (no reviews)
@Eric, please owner review net_internals_ui.cc . Thanks. https://codereview.chromium.org/547553005/diff/150001/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): https://codereview.chromium.org/547553005/diff/150001/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1478 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:1478: GetNSSCertDatabaseForProfile( Note ...
6 years, 3 months ago (2014-09-17 12:47:36 UTC) #12
pneubeck (no reviews)
On 2014/09/17 12:47:36, pneubeck wrote: > @Eric, please owner review net_internals_ui.cc . Thanks. > > ...
6 years, 3 months ago (2014-09-17 12:48:15 UTC) #13
Joao da Silva
lgtm
6 years, 3 months ago (2014-09-17 13:00:46 UTC) #14
eroman
net_ internals LGTM https://codereview.chromium.org/547553005/diff/170001/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): https://codereview.chromium.org/547553005/diff/170001/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode262 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:262: // |error| contains earlier errors during ...
6 years, 3 months ago (2014-09-18 18:35:14 UTC) #15
pneubeck (no reviews)
https://codereview.chromium.org/547553005/diff/170001/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): https://codereview.chromium.org/547553005/diff/170001/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode262 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:262: // |error| contains earlier errors during this import. On ...
6 years, 3 months ago (2014-09-18 18:52:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/547553005/190001
6 years, 3 months ago (2014-09-18 18:54:21 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:190001) as f08303014b165f6013fe33198cd798ebd9a4e925
6 years, 3 months ago (2014-09-18 19:51:41 UTC) #19
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/bc656c0e7b7bd67fb28e5a880d21b9510ebd3e3a Cr-Commit-Position: refs/heads/master@{#295534}
6 years, 3 months ago (2014-09-18 19:52:42 UTC) #20
eugenis
6 years, 3 months ago (2014-09-19 09:14:47 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:190001) has been created in
https://codereview.chromium.org/580283005/ by eugenis@chromium.org.

The reason for reverting is: Use-after-free.
https://code.google.com/p/chromium/issues/detail?id=415916
.

Powered by Google App Engine
This is Rietveld 408576698