Index: chrome/browser/resources/ntp4/most_visited_page.js |
diff --git a/chrome/browser/resources/ntp4/most_visited_page.js b/chrome/browser/resources/ntp4/most_visited_page.js |
index a6631c8f75bd0fd4874d463dfa1e4d9596b7e9c1..6d92f3e714efd69fc7579029d38624f477744bfa 100644 |
--- a/chrome/browser/resources/ntp4/most_visited_page.js |
+++ b/chrome/browser/resources/ntp4/most_visited_page.js |
@@ -118,6 +118,12 @@ cr.define('ntp4', function() { |
this.blacklist_(); |
e.preventDefault(); |
} else { |
+ // Records an app launch from the most visited page (Chrome will decide |
+ // whether the url is an app). |
+ chrome.send('recordAppLaunchByURL', |
+ [encodeURIComponent(this.href), |
+ ntp4.APP_LAUNCH.NTP_MOST_VISITED]); |
+ // Records the index of this tile. |
chrome.send('recordInHistogram', ['NTP_MostVisited', this.index, 8]); |
} |
}, |