| Index: net/cert/nss_cert_database_chromeos.cc
|
| diff --git a/net/cert/nss_cert_database_chromeos.cc b/net/cert/nss_cert_database_chromeos.cc
|
| index b6eabcf1dba8cf12764f5cc19c6258c01a8a5428..e3a7dfd0cfe24c96627cad7c20655445a2a9b0a4 100644
|
| --- a/net/cert/nss_cert_database_chromeos.cc
|
| +++ b/net/cert/nss_cert_database_chromeos.cc
|
| @@ -14,7 +14,7 @@
|
| #include "base/bind.h"
|
| #include "base/callback.h"
|
| #include "base/location.h"
|
| -#include "base/task_runner.h"
|
| +#include "base/task_scheduler/post_task.h"
|
| #include "net/base/crypto_module.h"
|
| #include "net/cert/x509_certificate.h"
|
|
|
| @@ -49,10 +49,12 @@ void NSSCertDatabaseChromeOS::ListCerts(
|
|
|
| // base::Pased will NULL out |certs|, so cache the underlying pointer here.
|
| CertificateList* raw_certs = certs.get();
|
| - GetSlowTaskRunner()->PostTaskAndReply(
|
| - FROM_HERE,
|
| - base::Bind(&NSSCertDatabaseChromeOS::ListCertsImpl,
|
| - profile_filter_,
|
| + base::PostTaskWithTraitsAndReply(
|
| + FROM_HERE, base::TaskTraits()
|
| + .WithShutdownBehavior(
|
| + base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN)
|
| + .MayBlock(),
|
| + base::Bind(&NSSCertDatabaseChromeOS::ListCertsImpl, profile_filter_,
|
| base::Unretained(raw_certs)),
|
| base::Bind(callback, base::Passed(&certs)));
|
| }
|
|
|