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

Unified Diff: chrome/browser/resources/history/other_devices.js

Issue 976173003: Fix bug where |i| was reused in a nested loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: i -> j Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/other_devices.js
diff --git a/chrome/browser/resources/history/other_devices.js b/chrome/browser/resources/history/other_devices.js
index f0ebe8005b63ee5711e1c3b007643b62da3c57ac..5a3b21dae52e6845a7b7fd3f05f66e0421d5e0cc 100644
--- a/chrome/browser/resources/history/other_devices.js
+++ b/chrome/browser/resources/history/other_devices.js
@@ -513,9 +513,9 @@ DevicesView.prototype.displayResults_ = function() {
continue;
var grid = new cr.ui.FocusGrid();
- for (var i = 0; i < rows.length; ++i) {
- DevicesViewFocusRow.decorate(rows[i], devices[i]);
- grid.addRow(rows[i]);
+ for (var j = 0; j < rows.length; ++j) {
+ DevicesViewFocusRow.decorate(rows[j], devices[i]);
+ grid.addRow(rows[j]);
}
this.focusGrids_.push(grid);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698