Make ONCCertificateImporter async.
commit3b4ba221657f6b27e2156818bc445c885d87fc0e
authorpneubeck <pneubeck@chromium.org>
Fri, 19 Sep 2014 11:05:49 +0000 (19 04:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Sep 2014 11:06:01 +0000 (19 11:06 +0000)
tree82681a911c2a9a3692cfc3e51142e5e31b8842da
parentc6ccc77dc9c080d83e400dc12205bb805a25ac71
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.

This is a reland of f08303014b165f6013fe33198cd798ebd9a4e925
  refs/heads/master@{#295534}
with the fixed destruction order in ONCCertificateImporterImplTest.

The fix was reviewed in
  https://codereview.chromium.org/589443002/

TBR=eroman@chromium.org
BUG=413219

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

Cr-Commit-Position: refs/heads/master@{#295687}
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