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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review 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/settings/certificate_manager_page/ca_trust_edit_dialog.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js b/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js
index 3139be38f91cc1ab83c0c37ffa4103b3e19bfc67..92d2f241103a9d1ee03ad15ac9a4f4baa300253b 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js
@@ -33,18 +33,18 @@ Polymer({
/** @override */
attached: function() {
this.explanationText_ = loadTimeData.getStringF(
- 'certificateManagerCaTrustEditDialogExplanation',
- this.model.name);
+ 'certificateManagerCaTrustEditDialogExplanation', this.model.name);
// A non existing |model.id| indicates that a new certificate is being
// imported, otherwise an existing certificate is being edited.
if (this.model.id) {
- this.browserProxy_.getCaCertificateTrust(this.model.id).then(
- /** @param {!CaTrustInfo} trustInfo */
- function(trustInfo) {
- this.trustInfo_ = trustInfo;
- this.$.dialog.showModal();
- }.bind(this));
+ this.browserProxy_.getCaCertificateTrust(this.model.id)
+ .then(
+ /** @param {!CaTrustInfo} trustInfo */
+ function(trustInfo) {
+ this.trustInfo_ = trustInfo;
+ this.$.dialog.showModal();
+ }.bind(this));
} else {
/** @type {!CrDialogElement} */ (this.$.dialog).showModal();
}
@@ -61,19 +61,20 @@ Polymer({
var whenDone = this.model.id ?
this.browserProxy_.editCaCertificateTrust(
- this.model.id, this.$.ssl.checked,
- this.$.email.checked, this.$.objSign.checked) :
+ this.model.id, this.$.ssl.checked, this.$.email.checked,
+ this.$.objSign.checked) :
this.browserProxy_.importCaCertificateTrustSelected(
this.$.ssl.checked, this.$.email.checked, this.$.objSign.checked);
- whenDone.then(function() {
- this.$.spinner.active = false;
- /** @type {!CrDialogElement} */ (this.$.dialog).close();
- }.bind(this),
- /** @param {!CertificatesError} error */
- function(error) {
- /** @type {!CrDialogElement} */ (this.$.dialog).close();
- this.fire('certificates-error', {error: error, anchor: null});
- }.bind(this));
+ whenDone.then(
+ function() {
+ this.$.spinner.active = false;
+ /** @type {!CrDialogElement} */ (this.$.dialog).close();
+ }.bind(this),
+ /** @param {!CertificatesError} error */
+ function(error) {
+ /** @type {!CrDialogElement} */ (this.$.dialog).close();
+ this.fire('certificates-error', {error: error, anchor: null});
+ }.bind(this));
},
});

Powered by Google App Engine
This is Rietveld 408576698