DescriptionAdd UMA stats for which icon types are shown and clicked on the NTP.
This adds two new histograms (with suffixes):
NewTabPage.TileType.<source> - Records the type of each most visited
tile that's shown on the NTP. Valid values are IconReal, IconColor,
IconDefault, ThumbnailLocal, ThumbnailServer, ThumbnailDefault.
NewTabPage.TileTypeClicked.<source> - Records the type of each most
visited tile that the user clicks on. Same values as above.
In both cases <source> can be one of "client", "server8", "popular", or
another value indicating the source of the most visited suggestions.
This CL also refactors a fair amount to support this change:
- There's a new C++/Java shared enum called MostVisitedTileType, with
the same values as the new histograms.
- Each MostVisitedItem in Java stores its tile type.
- NewTabPage.IconsGray and related histograms are now recorded in
most_visited_sites.cc alongside NewTabPage.NumberOfGrayTiles, since
these histograms are equivalent (one is for the icon NTP; one for the
thumbnail NTP)
BUG=536294
Committed: https://crrev.com/2a47ce7d25f4ccbe62d02e1dd90961cc526bc036
Cr-Commit-Position: refs/heads/master@{#351869}
Patch Set 1 #Patch Set 2 : #
Total comments: 8
Patch Set 3 : rebased #Patch Set 4 : beautiful javadocs #
Total comments: 10
Patch Set 5 : asvitkine's comments #
Total comments: 5
Patch Set 6 : comments from #5 #Patch Set 7 : rebased #Patch Set 8 : fixed test #Messages
Total messages: 35 (12 generated)
|