Make ONCCertificateImporter async.
commitbc656c0e7b7bd67fb28e5a880d21b9510ebd3e3a
authorpneubeck <pneubeck@chromium.org>
Thu, 18 Sep 2014 19:51:34 +0000 (18 12:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Sep 2014 19:52:00 +0000 (18 19:52 +0000)
tree7f756f4b94c593b9f78a1f3e747245a9331e576b
parent0f47229d3dc4b4a7f2a5fc47c84d29c2d9b15db6
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

Review URL: https://codereview.chromium.org/547553005

Cr-Commit-Position: refs/heads/master@{#295534}
chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc
chrome/browser/chromeos/policy/user_network_configuration_updater.cc
chrome/browser/chromeos/policy/user_network_configuration_updater.h
chrome/browser/ui/webui/net_internals/net_internals_ui.cc
chromeos/chromeos.gyp
chromeos/network/onc/mock_certificate_importer.cc [deleted file]
chromeos/network/onc/mock_certificate_importer.h [deleted file]
chromeos/network/onc/onc_certificate_importer.h
chromeos/network/onc/onc_certificate_importer_impl.cc
chromeos/network/onc/onc_certificate_importer_impl.h
chromeos/network/onc/onc_certificate_importer_impl_unittest.cc