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

Unified Diff: chrome/browser/ui/webui/options2/certificate_manager_handler2.cc

Issue 9940001: Fix imported server certs being distrusted in NSS 3.13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review changes Created 8 years, 7 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: chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
index 5129a2178220d5ba45c968db2097e5ddfdaad76d..06142d9410f6d98feea22dec9723f6ca112c2eea 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
+++ b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
@@ -806,8 +806,10 @@ void CertificateManagerHandler::ImportServerFileRead(int read_errno,
}
net::CertDatabase::ImportCertFailureList not_imported;
+ // TODO(mattm): Add UI for trust. http://crbug.com/76274
bool result = certificate_manager_model_->ImportServerCert(
selected_cert_list_,
+ net::CertDatabase::TRUST_DEFAULT,
&not_imported);
if (!result) {
ShowError(
@@ -886,6 +888,8 @@ void CertificateManagerHandler::ImportCATrustSelected(const ListValue* args) {
return;
}
+ // TODO(mattm): add UI for setting explicit distrust, too.
+ // http://crbug.com/128411
net::CertDatabase::ImportCertFailureList not_imported;
bool result = certificate_manager_model_->ImportCACerts(
selected_cert_list_,

Powered by Google App Engine
This is Rietveld 408576698