Index: chrome/browser/resources/history/history.js |
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js |
index 13ec12b636fec138bef864ad7558e6653eb3caec..8cfb2f8174496419691e2fe238fa70be527a07af 100644 |
--- a/chrome/browser/resources/history/history.js |
+++ b/chrome/browser/resources/history/history.js |
@@ -1802,6 +1802,16 @@ HistoryView.prototype.toggleGroupedVisits_ = function(e) { |
} |
entry.classList.toggle('expand'); |
+ |
+ var row = entry.querySelector('.site-domain-wrapper'); |
+ var activeRows = |
+ this.resultDiv_.getElementsByClassName(cr.ui.FocusRow.ACTIVE_CLASS); |
+ for (var i = 0; i < activeRows.length; ++i) { |
+ if (activeRows[i] != row) // Ignore |row| to avoid flicker. |
+ activeRows[i].makeActive(false); |
+ } |
+ row.makeActive(true); |
+ |
this.updateFocusGrid_(); |
}; |