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

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

Issue 10407072: certificate manager: Disable export option for TPM-backed certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the extractability test out of net/ 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 af91ea5ada9a421762fbdee04efefbfb1812adf8..ea1c9c5aa7a894b46d5d7973e2b3e05ff4dbc4e0 100644
--- a/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
+++ b/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc
@@ -39,6 +39,7 @@ static const char kSubNodesId[] = "subnodes";
static const char kNameId[] = "name";
static const char kReadOnlyId[] = "readonly";
static const char kUntrustedId[] = "untrusted";
+static const char kExtractableId[] = "extractable";
static const char kSecurityDeviceId[] = "device";
static const char kErrorId[] = "error";
@@ -975,6 +976,9 @@ void CertificateManagerHandler::PopulateTree(const std::string& tab_name,
cert_dict->SetBoolean(
kUntrustedId,
certificate_manager_model_->cert_db().IsUntrusted(cert));
+ cert_dict->SetBoolean(
+ kExtractableId,
+ !certificate_manager_model_->IsHardwareBacked(cert));
wtc 2012/05/22 23:43:46 Please add a TODO comment to note that this should
hshi1 2012/05/23 00:03:29 Done.
// TODO(mattm): Other columns.
subnodes->Append(cert_dict);
}

Powered by Google App Engine
This is Rietveld 408576698