Index: chrome/browser/resources/md_history/synced_device_manager.js |
diff --git a/chrome/browser/resources/md_history/synced_device_manager.js b/chrome/browser/resources/md_history/synced_device_manager.js |
index 8df8973d7b22dac9e45f4cd467e8b5d53614a5c9..5368cc5c35d7ab7b70bdb18f1902beeeced67e8c 100644 |
--- a/chrome/browser/resources/md_history/synced_device_manager.js |
+++ b/chrome/browser/resources/md_history/synced_device_manager.js |
@@ -59,10 +59,14 @@ Polymer({ |
var tabs = []; |
var separatorIndexes = []; |
for (var i = 0; i < session.windows.length; i++) { |
+ var windowId = session.windows[i].sessionId; |
var newTabs = session.windows[i].tabs; |
if (newTabs.length == 0) |
continue; |
+ newTabs.forEach(function(tab) { |
+ tab.windowId = windowId; |
+ }); |
if (!this.searchTerm) { |
// Add all the tabs if there is no search term. |