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

Unified Diff: chrome/browser/resources/options2/certificate_manager.js

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/resources/options2/certificate_manager.js
diff --git a/chrome/browser/resources/options2/certificate_manager.js b/chrome/browser/resources/options2/certificate_manager.js
index e2e64250338e286e2fb535e68c46df7359614947..5f093128235095598812c0d1c6fe9cf51ad07462 100644
--- a/chrome/browser/resources/options2/certificate_manager.js
+++ b/chrome/browser/resources/options2/certificate_manager.js
@@ -116,12 +116,13 @@ cr.define('options', function() {
updateButtonState: function(data) {
var isCert = !!data && data.id.substr(0, 5) == 'cert-';
var readOnly = !!data && data.readonly;
+ var extractable = !!data && data.extractable;
var hasChildren = this.tree.items.length > 0;
this.viewButton.disabled = !isCert;
if (this.editButton !== null)
this.editButton.disabled = !isCert;
if (this.backupButton !== null)
- this.backupButton.disabled = !isCert;
+ this.backupButton.disabled = !isCert || !extractable;
if (this.backupAllButton !== null)
this.backupAllButton.disabled = !hasChildren;
if (this.exportButton !== null)

Powered by Google App Engine
This is Rietveld 408576698