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

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

Issue 2219753002: MD History: Fix crash when opening Synced Tab links with touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename closure type Created 4 years, 4 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
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 71760a79c882e4ff05090b0a614106fb27aff594..8090df8ae3b0a0587737661eda5022417c8b734b 100644
--- a/chrome/browser/resources/md_history/synced_device_card.js
+++ b/chrome/browser/resources/md_history/synced_device_card.js
@@ -40,14 +40,15 @@ Polymer({
},
/**
- * @param {TapEvent} e
+ * Open a single synced tab. Listens to 'click' rather than 'tap'
+ * to determine what modifier keys were pressed.
+ * @param {DomRepeatClickEvent} e
* @private
*/
openTab_: function(e) {
var tab = /** @type {ForeignSessionTab} */(e.model.tab);
- var srcEvent = /** @type {Event} */(e.detail.sourceEvent);
md_history.BrowserService.getInstance().openForeignSessionTab(
- this.sessionTag, tab.windowId, tab.sessionId, srcEvent);
+ this.sessionTag, tab.windowId, tab.sessionId, e);
e.preventDefault();
},

Powered by Google App Engine
This is Rietveld 408576698