Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: net/cert/test_root_certs.cc

Issue 2175933002: More aggressive IO asserts in content_browsertests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes (in PPAPI tests + WebRTC tests). Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698