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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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_edit_ca_trust_overlay.js
diff --git a/chrome/browser/resources/options/certificate_edit_ca_trust_overlay.js b/chrome/browser/resources/options/certificate_edit_ca_trust_overlay.js
index f65b26b436527d46a8a3df4fb6c9f21fffbe4c3a..96210c111273d1b261c9d0f26a35995fa016d6cc 100644
--- a/chrome/browser/resources/options/certificate_edit_ca_trust_overlay.js
+++ b/chrome/browser/resources/options/certificate_edit_ca_trust_overlay.js
@@ -12,8 +12,9 @@ cr.define('options', function() {
* @class
*/
function CertificateEditCaTrustOverlay() {
- Page.call(this, 'certificateEditCaTrustOverlay', '',
- 'certificateEditCaTrustOverlay');
+ Page.call(
+ this, 'certificateEditCaTrustOverlay', '',
+ 'certificateEditCaTrustOverlay');
}
cr.addSingletonGetter(CertificateEditCaTrustOverlay);
@@ -35,10 +36,10 @@ cr.define('options', function() {
*/
enableInputs_: function(enabled) {
$('certificateCaTrustSSLCheckbox').disabled =
- $('certificateCaTrustEmailCheckbox').disabled =
- $('certificateCaTrustObjSignCheckbox').disabled =
- $('certificateEditCaTrustCancelButton').disabled =
- $('certificateEditCaTrustOkButton').disabled = !enabled;
+ $('certificateCaTrustEmailCheckbox').disabled =
+ $('certificateCaTrustObjSignCheckbox').disabled =
+ $('certificateEditCaTrustCancelButton').disabled =
+ $('certificateEditCaTrustOkButton').disabled = !enabled;
},
/**
@@ -50,11 +51,11 @@ cr.define('options', function() {
finishEdit_: function() {
// TODO(mattm): Send checked values as booleans. For now send them as
// strings, since WebUIBindings::send does not support any other types :(
- chrome.send('editCaCertificateTrust',
- [this.certId,
- $('certificateCaTrustSSLCheckbox').checked.toString(),
- $('certificateCaTrustEmailCheckbox').checked.toString(),
- $('certificateCaTrustObjSignCheckbox').checked.toString()]);
+ chrome.send('editCaCertificateTrust', [
+ this.certId, $('certificateCaTrustSSLCheckbox').checked.toString(),
+ $('certificateCaTrustEmailCheckbox').checked.toString(),
+ $('certificateCaTrustObjSignCheckbox').checked.toString()
+ ]);
this.enableInputs_(false);
},
@@ -75,10 +76,11 @@ cr.define('options', function() {
finishImport_: function() {
// TODO(mattm): Send checked values as booleans. For now send them as
// strings, since WebUIBindings::send does not support any other types :(
- chrome.send('importCaCertificateTrustSelected',
- [$('certificateCaTrustSSLCheckbox').checked.toString(),
- $('certificateCaTrustEmailCheckbox').checked.toString(),
- $('certificateCaTrustObjSignCheckbox').checked.toString()]);
+ chrome.send('importCaCertificateTrustSelected', [
+ $('certificateCaTrustSSLCheckbox').checked.toString(),
+ $('certificateCaTrustEmailCheckbox').checked.toString(),
+ $('certificateCaTrustObjSignCheckbox').checked.toString()
+ ]);
this.enableInputs_(false);
},
@@ -123,8 +125,8 @@ cr.define('options', function() {
self.finishEdit_();
};
$('certificateEditCaTrustDescription').textContent =
- loadTimeData.getStringF('certificateEditCaTrustDescriptionFormat',
- certName);
+ loadTimeData.getStringF(
+ 'certificateEditCaTrustDescriptionFormat', certName);
self.enableInputs_(false);
PageManager.showPageByName('certificateEditCaTrustOverlay');
chrome.send('getCaCertificateTrust', [certId]);
@@ -145,8 +147,8 @@ cr.define('options', function() {
self.finishImport_();
};
$('certificateEditCaTrustDescription').textContent =
- loadTimeData.getStringF('certificateImportCaDescriptionFormat',
- certName);
+ loadTimeData.getStringF(
+ 'certificateImportCaDescriptionFormat', certName);
CertificateEditCaTrustOverlay.populateTrust(false, false, false);
PageManager.showPageByName('certificateEditCaTrustOverlay');
};
@@ -156,7 +158,5 @@ cr.define('options', function() {
};
// Export
- return {
- CertificateEditCaTrustOverlay: CertificateEditCaTrustOverlay
- };
+ return {CertificateEditCaTrustOverlay: CertificateEditCaTrustOverlay};
});

Powered by Google App Engine
This is Rietveld 408576698