• pneubeck's avatar
    Make ONCCertificateImporter async. · 3b4ba221
    pneubeck authored
    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}
    3b4ba221
chromeos.gyp 26.7 KB