Index: chrome/browser/resources/local_ntp/most_visited_util.js |
diff --git a/chrome/browser/resources/local_ntp/most_visited_util.js b/chrome/browser/resources/local_ntp/most_visited_util.js |
index 8a4ea9b3bba9d2e2fb8e84401b207e80ccd42434..efdf01e3029f54cc3ea2e46010ceebede7cd474d 100644 |
--- a/chrome/browser/resources/local_ntp/most_visited_util.js |
+++ b/chrome/browser/resources/local_ntp/most_visited_util.js |
@@ -29,7 +29,9 @@ var NTP_LOGGING_EVENT_TYPE = { |
NTP_FALLBACK_THUMBNAIL_REQUESTED: 3, |
// The primary thumbnail image failed to load and caused us to use the |
// secondary thumbnail as a fallback. |
- NTP_FALLBACK_THUMBNAIL_USED: 4 |
+ NTP_FALLBACK_THUMBNAIL_USED: 4, |
+ // We got a suggestion coming from the server. |
Mathieu
2013/11/22 19:58:19
nit: Remove reference to "We" here and below
beaudoin
2013/11/22 20:09:35
Done.
|
+ NTP_SERVER_SIDE_SUGGESTION: 5 |
}; |
@@ -163,6 +165,9 @@ function fillMostVisited(location, fill) { |
data.direction = params.di || ''; |
data.domain = params.dom || ''; |
data.ping = params.ping || ''; |
+ // Log the fact that we got a server suggestion |
+ var ntpApiHandle = chrome.embeddedSearch.newTabPage; |
+ ntpApiHandle.logEvent(NTP_LOGGING_EVENT_TYPE.NTP_SERVER_SIDE_SUGGESTION); |
} else { |
var apiHandle = chrome.embeddedSearch.searchBox; |
data = apiHandle.getMostVisitedItemData(params.rid); |