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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js

Issue 2651483002: MD Settings: Eliminate use of ES6 for Chrome OS (Closed)
Patch Set: Feedback Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698