| Index: chrome/browser/chromeos/cros/onc_network_parser.cc
|
| diff --git a/chrome/browser/chromeos/cros/onc_network_parser.cc b/chrome/browser/chromeos/cros/onc_network_parser.cc
|
| index ef8fb285e063105d5df20d88f93d27709cb6ac2d..5c6d2ea46f432f55b4e059ef134671f514c830ab 100644
|
| --- a/chrome/browser/chromeos/cros/onc_network_parser.cc
|
| +++ b/chrome/browser/chromeos/cros/onc_network_parser.cc
|
| @@ -922,12 +922,12 @@ OncNetworkParser::ParseServerOrCaCertificate(
|
| cert_list.push_back(x509_cert);
|
| net::CertDatabase::ImportCertFailureList failures;
|
| bool success = false;
|
| + net::CertDatabase::TrustBits trust = web_trust ?
|
| + net::CertDatabase::TRUSTED_SSL :
|
| + net::CertDatabase::UNTRUSTED;
|
| if (cert_type == "Server") {
|
| - success = cert_database.ImportServerCert(cert_list, &failures);
|
| + success = cert_database.ImportServerCert(cert_list, trust, &failures);
|
| } else { // Authority cert
|
| - net::CertDatabase::TrustBits trust = web_trust ?
|
| - net::CertDatabase::TRUSTED_SSL :
|
| - net::CertDatabase::UNTRUSTED;
|
| success = cert_database.ImportCACerts(cert_list, trust, &failures);
|
| }
|
| if (!failures.empty()) {
|
|
|