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

Unified Diff: chrome/browser/resources/ntp4/most_visited_page.js

Issue 7550015: ntp4: record app launch source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
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..ebcd2a40ffebcbc4f516ec6ba11be415568d7e62 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).
+ // TODO(estade): don't convert to string.
+ chrome.send('recordAppLaunchByURL',
Rick Byers 2011/08/03 14:41:11 Is replacing the ping with a click handler really
Evan Stade 2011/08/03 22:11:22 I would have thought you were right, but ping does
Rick Byers 2011/08/04 00:32:21 That sucks - seems like a bug according to the spe
+ [this.href, String(ntp4.APP_LAUNCH.NTP_MOST_VISITED)]);
+ // Records the index of this tile.
chrome.send('recordInHistogram', ['NTP_MostVisited', this.index, 8]);
}
},

Powered by Google App Engine
This is Rietveld 408576698