| Index: chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| diff --git a/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js b/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| index 3b076a1f26fb42e79028bd965ffc7db1a1b03073..4bc7f6cda75e0bc256013b44d90015c97ed73f49 100644
|
| --- a/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| +++ b/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| @@ -34,7 +34,6 @@ cr.define('options', function() {
|
| this.createDeviceList_();
|
|
|
| $('bluetooth-add-device-cancel-button').onclick = function(event) {
|
| - chrome.send('stopBluetoothDeviceDiscovery');
|
| OptionsPage.closeOverlay();
|
| };
|
|
|
| @@ -42,7 +41,6 @@ cr.define('options', function() {
|
| $('bluetooth-add-device-apply-button').onclick = function(event) {
|
| var device = self.deviceList_.selectedItem;
|
| var address = device.address;
|
| - chrome.send('stopBluetoothDeviceDiscovery');
|
| OptionsPage.closeOverlay();
|
| device.pairing = 'bluetoothStartConnecting';
|
| options.BluetoothPairing.showDialog(device);
|
| @@ -68,6 +66,11 @@ cr.define('options', function() {
|
| });
|
| },
|
|
|
| + /** @override */
|
| + didClosePage: function() {
|
| + chrome.send('stopBluetoothDeviceDiscovery');
|
| + },
|
| +
|
| /**
|
| * Creates, decorates and initializes the bluetooth device list.
|
| * @private
|
|
|