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

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

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/options/certificate_manager.js
diff --git a/chrome/browser/resources/options/certificate_manager.js b/chrome/browser/resources/options/certificate_manager.js
index b2d46e9dc0c0dfe13cce65236e96e2c79fd68a35..d10215b2922c483a4dd1819a87940433efdf3f36 100644
--- a/chrome/browser/resources/options/certificate_manager.js
+++ b/chrome/browser/resources/options/certificate_manager.js
@@ -26,7 +26,7 @@ cr.define('options', function() {
this.viewButton.onclick = function(e) {
var selected = tree.selectedItem;
chrome.send('viewCertificate', [selected.data.id]);
- }
+ };
this.editButton = $(id + '-edit');
if (this.editButton !== null) {
@@ -34,12 +34,12 @@ cr.define('options', function() {
this.editButton.onclick = function(e) {
var selected = tree.selectedItem;
chrome.send('editServerCertificate', [selected.data.id]);
- }
+ };
} else if (id == 'caCertsTab') {
this.editButton.onclick = function(e) {
var data = tree.selectedItem.data;
CertificateEditCaTrustOverlay.show(data.id, data.name);
- }
+ };
}
}
@@ -51,7 +51,7 @@ cr.define('options', function() {
this.backupButton.onclick = function(e) {
var selected = tree.selectedItem;
chrome.send('exportPersonalCertificate', [selected.data.id]);
- }
+ };
}
}
@@ -62,7 +62,7 @@ cr.define('options', function() {
} else {
this.backupAllButton.onclick = function(e) {
chrome.send('exportAllPersonalCertificates');
- }
+ };
}
}
@@ -74,16 +74,16 @@ cr.define('options', function() {
} else {
this.importButton.onclick = function(e) {
chrome.send('importPersonalCertificate', [false]);
- }
+ };
}
} else if (id == 'serverCertsTab') {
this.importButton.onclick = function(e) {
chrome.send('importServerCertificate');
- }
+ };
} else if (id == 'caCertsTab') {
this.importButton.onclick = function(e) {
chrome.send('importCaCertificate');
- }
+ };
}
}
@@ -92,7 +92,7 @@ cr.define('options', function() {
if (id == 'personalCertsTab') {
this.importAndBindButton.onclick = function(e) {
chrome.send('importPersonalCertificate', [true]);
- }
+ };
}
}
@@ -104,7 +104,7 @@ cr.define('options', function() {
this.exportButton.onclick = function(e) {
var selected = tree.selectedItem;
chrome.send('exportCertificate', [selected.data.id]);
- }
+ };
}
}
@@ -120,11 +120,10 @@ cr.define('options', function() {
tree.selectedItem = null;
chrome.send('deleteCertificate', [data.id]);
});
- }
+ };
}
CertificateManagerTab.prototype = {
-
/**
* Update button state.
* @private
@@ -155,9 +154,8 @@ cr.define('options', function() {
*/
handleCertificatesTreeChange_: function(e) {
var data = null;
- if (this.tree.selectedItem) {
+ if (this.tree.selectedItem)
data = this.tree.selectedItem.data;
- }
this.updateButtonState(data);
},
@@ -181,6 +179,7 @@ cr.define('options', function() {
CertificateManager.prototype = {
__proto__: OptionsPage.prototype,
+ /** @override */
initializePage: function(isKiosk) {
OptionsPage.prototype.initializePage.call(this);

Powered by Google App Engine
This is Rietveld 408576698