Chromium Code Reviews| Index: chrome/browser/resources/ntp4/new_tab.js |
| diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js |
| index 43e25f756290ee3f8dd76be31e0b2c6042e8bdba..821ab156cd779d54f7466c95de0226069addbf21 100644 |
| --- a/chrome/browser/resources/ntp4/new_tab.js |
| +++ b/chrome/browser/resources/ntp4/new_tab.js |
| @@ -104,6 +104,8 @@ cr.define('ntp', function() { |
| var webStoreLink = loadTimeData.getString('webStoreLink'); |
| var url = appendParam(webStoreLink, 'utm_source', 'chrome-ntp-launcher'); |
| $('chrome-web-store-link').href = url; |
| + $('chrome-web-store-link').addEventListener('auxclick', |
| + onChromeWebStoreButtonClick); |
|
Dan Beam
2016/08/10 22:35:27
you're thinking of this code
|
| $('chrome-web-store-link').addEventListener('click', |
| onChromeWebStoreButtonClick); |
| } |
| @@ -155,7 +157,7 @@ cr.define('ntp', function() { |
| /** |
| * Launches the chrome web store app with the chrome-ntp-launcher |
| * source. |
| - * @param {Event} e The click event. |
| + * @param {Event} e The click/auxclick event. |
| */ |
| function onChromeWebStoreButtonClick(e) { |
| chrome.send('recordAppLaunchByURL', |