| Index: net/cert/test_root_certs.cc
|
| diff --git a/net/cert/test_root_certs.cc b/net/cert/test_root_certs.cc
|
| index c39c4b49ee234e67a46bf6e3339a00587d0c7890..c5f777ed619ba086f16ece4a4280183d95692739 100644
|
| --- a/net/cert/test_root_certs.cc
|
| +++ b/net/cert/test_root_certs.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/logging.h"
|
| +#include "base/threading/thread_restrictions.h"
|
| #include "net/cert/x509_certificate.h"
|
|
|
| namespace net {
|
| @@ -43,6 +44,7 @@ bool TestRootCerts::HasInstance() {
|
| }
|
|
|
| bool TestRootCerts::AddFromFile(const base::FilePath& file) {
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io_for_loading_test_certs;
|
| CertificateList root_certs = LoadCertificates(file);
|
| if (root_certs.empty() || root_certs.size() > 1)
|
| return false;
|
|
|