Chromium Code Reviews| 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) |