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

Side by Side Diff: chrome/browser/resources/settings/certificate_manager_page/ca_trust_edit_dialog.js

Issue 1815733004: MD Settings: Certificate manager, hooking up all dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@certificates_basic_ui
Patch Set: Adding more tests. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-ca-trust-edit-dialog' is the a dialog allowing the user to edit the 7 * 'settings-ca-trust-edit-dialog' is the a dialog allowing the user to edit the
8 * trust lever of a given certificate authority. 8 * trust lever of a given certificate authority.
9 * 9 *
10 * @group Chrome Settings Elements 10 * @group Chrome Settings Elements
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 /** @private */ 53 /** @private */
54 onOkTap_: function() { 54 onOkTap_: function() {
55 this.$.spinner.active = true; 55 this.$.spinner.active = true;
56 this.browserProxy_.editCaCertificateTrust( 56 this.browserProxy_.editCaCertificateTrust(
57 this.model.id, this.$.ssl.checked, 57 this.model.id, this.$.ssl.checked,
58 this.$.email.checked, this.$.objSign.checked).then(function() { 58 this.$.email.checked, this.$.objSign.checked).then(function() {
59 this.$.spinner.active = false; 59 this.$.spinner.active = false;
60 this.$.dialog.close(); 60 this.$.dialog.close();
61 }.bind(this), 61 }.bind(this),
62 /** @param {!CertificatesError} error */ 62 /** @param {!CertificatesError} error */
63 function(error) { 63 function(error) {
tommycli 2016/03/23 19:28:04 Nit: Can we redo the indentation on this a bit? I
dpapad 2016/03/24 22:06:10 Can you suggest an alternative indentation that wo
tommycli 2016/03/24 22:34:14 Does this work? I realize it's a great deal of ind
dpapad 2016/03/25 17:36:03 Done.
64 // TODO(dpapad): Display error here. 64 this.$.dialog.close();
65 }); 65 this.dispatchEvent(
tommycli 2016/03/23 19:28:04 Any particular reason we're using dispatchEvent he
dpapad 2016/03/24 22:06:10 Changed all of them to fire() for consistency. Th
tommycli 2016/03/24 22:34:14 Arg... that's unfortunate. I'm not so sure about m
66 new CustomEvent('certificates-error', {detail: error}));
67 }.bind(this));
66 }, 68 },
67 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698