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

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: Fix compile error in cert_database_nss.cc 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..9d18ead80fd25bff284632f83ed3ee5baa280c14 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 hardwareBacked = !!data && data.hardware_backed;
Evan Stade 2012/05/21 21:14:58 you don't need the !! as far as I'm aware (here or
hshi1 2012/05/21 21:17:44 I'm not really familiar with this JS and would pre
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 || hardwareBacked;
if (this.backupAllButton !== null)
this.backupAllButton.disabled = !hasChildren;
if (this.exportButton !== null)

Powered by Google App Engine
This is Rietveld 408576698