| Index: chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
|
| diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
|
| index 35054c2c1ce4ede61e2d090f91b7aac4b6588d5f..29a6ca68a9b3e8672ff5865676d83d8b8729a548 100644
|
| --- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
|
| +++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
|
| @@ -228,8 +228,8 @@ Polymer({
|
|
|
| /** @private */
|
| deviceListChanged_: function() {
|
| - for (let device of this.deviceList_) {
|
| - if (device.connected) {
|
| + for (var i = 0; i < this.deviceList_.length; ++i) {
|
| + if (this.deviceList_[i].connected) {
|
| this.deviceConnected_ = true;
|
| return;
|
| }
|
| @@ -455,8 +455,8 @@ Polymer({
|
| // TODO(stevenjb): Show error.
|
| console.error(
|
| 'Error setting pairing response: ' + options.device.name +
|
| - ': Response: ' + options.response + ': Error: ' +
|
| - chrome.runtime.lastError.message);
|
| + ': Response: ' + options.response +
|
| + ': Error: ' + chrome.runtime.lastError.message);
|
| }
|
| this.$$('#deviceDialog').close();
|
| }.bind(this));
|
|
|