Index: chrome/browser/resources/md_history/history_list_behavior.js |
diff --git a/chrome/browser/resources/md_history/history_list_behavior.js b/chrome/browser/resources/md_history/history_list_behavior.js |
index 0a6d4393873bd6cf21308d8f844b9b6015d9d4a6..cc3111eaf0e21e374399061334fdaef5740dabcf 100644 |
--- a/chrome/browser/resources/md_history/history_list_behavior.js |
+++ b/chrome/browser/resources/md_history/history_list_behavior.js |
@@ -213,10 +213,12 @@ var HistoryListBehavior = { |
if (paths.length == 0) |
paths.push(item.path); |
+ var selected = !this.selectedPaths.has(item.path); |
+ |
paths.forEach(function(path) { |
- this.set(path + '.selected', item.selected); |
+ this.set(path + '.selected', selected); |
- if (item.selected) { |
+ if (selected) { |
this.selectedPaths.add(path); |
return; |
} |