| Index: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
|
| diff --git a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
|
| index b3ece1c910739e416428ba8c74b95f1ac71ce10c..bf55801940fe76bbc10c84932bd435f2ee8c4add 100644
|
| --- a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
|
| +++ b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
|
| @@ -180,6 +180,8 @@ cr.define('options', function() {
|
| this.keyDownEventHandler_.bind(this));
|
| $('bluetooth-pincode').addEventListener('keydown',
|
| this.keyDownEventHandler_.bind(this));
|
| + $('bluetooth-pairing-close-button').addEventListener('click',
|
| + this.onClose_.bind(this));
|
| },
|
|
|
| /** @override */
|
| @@ -336,6 +338,16 @@ cr.define('options', function() {
|
| },
|
|
|
| /**
|
| + * Handles the click event on the close button.
|
| + * @param {Event} event A click down event.
|
| + * @private
|
| + */
|
| + onClose_: function(event) {
|
| + event.preventDefault();
|
| + chrome.send('dialogClose');
|
| + },
|
| +
|
| + /**
|
| * Updates the visibility of elements in the dialog.
|
| * @param {Array<string>} list List of conditionally visible elements that
|
| * are to be made visible.
|
|
|