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

Unified Diff: chrome/browser/resources/md_history/synced_device_manager.js

Issue 2172563002: [MD History] Use openForeignSession message to open foreign session tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_menu_up
Patch Set: Created 4 years, 5 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 | « chrome/browser/resources/md_history/synced_device_manager.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/resources/md_history/synced_device_manager.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698