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

Side by Side Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_delete_confirmation_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
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 A confirmation dialog allowing the user to delete various types 6 * @fileoverview A confirmation dialog allowing the user to delete various types
7 * of certificates. 7 * of certificates.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-certificate-delete-confirmation-dialog', 10 is: 'settings-certificate-delete-confirmation-dialog',
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 /** @private */ 83 /** @private */
84 onOkTap_: function() { 84 onOkTap_: function() {
85 this.browserProxy_.deleteCertificate(this.model.id).then( 85 this.browserProxy_.deleteCertificate(this.model.id).then(
86 function() { 86 function() {
87 /** @type {!CrDialogElement} */ (this.$.dialog).close(); 87 /** @type {!CrDialogElement} */ (this.$.dialog).close();
88 }.bind(this), 88 }.bind(this),
89 /** @param {!CertificatesError} error */ 89 /** @param {!CertificatesError} error */
90 function(error) { 90 function(error) {
91 /** @type {!CrDialogElement} */ (this.$.dialog).close(); 91 /** @type {!CrDialogElement} */ (this.$.dialog).close();
92 this.fire('certificates-error', error); 92 this.fire('certificates-error', {error: error, anchor: null});
93 }.bind(this)); 93 }.bind(this));
94 }, 94 },
95 }); 95 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698