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

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

Issue 2195593002: MD History: Fix clicking on synced tab links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix closure 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 | « no previous file | chrome/test/data/webui/md_history/history_synced_tabs_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/synced_device_card.js
diff --git a/chrome/browser/resources/md_history/synced_device_card.js b/chrome/browser/resources/md_history/synced_device_card.js
index da1f0f38a833ee746625d3476bcfe96cc3d023b3..89d9878dedbfdf753de9fdbe7229c7ea0eddf170 100644
--- a/chrome/browser/resources/md_history/synced_device_card.js
+++ b/chrome/browser/resources/md_history/synced_device_card.js
@@ -35,8 +35,6 @@ Polymer({
searchTerm: String,
- windowId: Number,
-
sessionTag: String,
},
@@ -54,10 +52,10 @@ Polymer({
* @private
*/
openTab_: function(e) {
- var model = /** @type {ForeignSessionTab} */(e.model);
+ var tab = /** @type {ForeignSessionTab} */(e.model.tab);
var srcEvent = /** @type {Event} */(e.detail.sourceEvent);
md_history.BrowserService.getInstance().openForeignSessionTab(
- this.sessionTag, model.windowId, model.sessionId, srcEvent);
+ this.sessionTag, tab.windowId, tab.sessionId, srcEvent);
e.preventDefault();
},
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_synced_tabs_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698