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

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

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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/certificate_list.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
index f9b7b020fbeb973a500ed6078b89ac3902d14e90..d4961327993ad9faafa10dd38c4990797460eb46 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_list.js
@@ -13,7 +13,9 @@ Polymer({
/** @type {!Array<!Certificate>} */
certificates: {
type: Array,
- value: function() { return []; },
+ value: function() {
+ return [];
+ },
},
/** @type {!CertificateType} */
@@ -88,21 +90,17 @@ Polymer({
onImportTap_: function() {
var browserProxy = settings.CertificatesBrowserProxyImpl.getInstance();
if (this.certificateType == CertificateType.PERSONAL) {
- browserProxy.importPersonalCertificate(false).then(
- function(showPasswordPrompt) {
+ browserProxy.importPersonalCertificate(false)
+ .then(function(showPasswordPrompt) {
if (showPasswordPrompt)
this.dispatchImportActionEvent_(null);
- }.bind(this),
- this.onRejected_.bind(this));
+ }.bind(this), this.onRejected_.bind(this));
} else if (this.certificateType == CertificateType.CA) {
- browserProxy.importCaCertificate().then(
- function(certificateName) {
- this.dispatchImportActionEvent_({name: certificateName});
- }.bind(this),
- this.onRejected_.bind(this));
+ browserProxy.importCaCertificate().then(function(certificateName) {
+ this.dispatchImportActionEvent_({name: certificateName});
+ }.bind(this), this.onRejected_.bind(this));
} else if (this.certificateType == CertificateType.SERVER) {
- browserProxy.importServerCertificate().catch(
- this.onRejected_.bind(this));
+ browserProxy.importServerCertificate().catch(this.onRejected_.bind(this));
} else {
assertNotReached();
}

Powered by Google App Engine
This is Rietveld 408576698