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

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

Issue 2792663002: MD Settings: Restore focus after closing dialogs, for certificate page. (Closed)
Patch Set: Add better explanation for |anchor| parameter in openDialog_ Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'settings-ca-trust-edit-dialog' allows the user to 6 * @fileoverview 'settings-ca-trust-edit-dialog' allows the user to
7 * - specify the trust level of a certificate authority that is being 7 * - specify the trust level of a certificate authority that is being
8 * imported. 8 * imported.
9 * - edit the trust level of an already existing certificate authority. 9 * - edit the trust level of an already existing certificate authority.
10 */ 10 */
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 this.browserProxy_.importCaCertificateTrustSelected( 66 this.browserProxy_.importCaCertificateTrustSelected(
67 this.$.ssl.checked, this.$.email.checked, this.$.objSign.checked); 67 this.$.ssl.checked, this.$.email.checked, this.$.objSign.checked);
68 68
69 whenDone.then(function() { 69 whenDone.then(function() {
70 this.$.spinner.active = false; 70 this.$.spinner.active = false;
71 /** @type {!CrDialogElement} */ (this.$.dialog).close(); 71 /** @type {!CrDialogElement} */ (this.$.dialog).close();
72 }.bind(this), 72 }.bind(this),
73 /** @param {!CertificatesError} error */ 73 /** @param {!CertificatesError} error */
74 function(error) { 74 function(error) {
75 /** @type {!CrDialogElement} */ (this.$.dialog).close(); 75 /** @type {!CrDialogElement} */ (this.$.dialog).close();
76 this.fire('certificates-error', error); 76 this.fire('certificates-error', {error: error, anchor: null});
77 }.bind(this)); 77 }.bind(this));
78 }, 78 },
79 }); 79 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698