DescriptionTrack when fallback icon color is the default.
On Android (and soon iOS), we track what kind of tile we show on the NTP
so that we can compare different kinds of clicks in UMA. The results are
probably no surprise: click rate for colored tiles is about twice that
of default-colored tiles (though it's not necessarily clear how much to
attribute that to our presentation and how much to the fact that good
sites generally have favicons).
Right now we have the default background color hard-coded in a few
places and use that to determine when a tile is default-colored. This is
possibly incorrect (when #787878 is in fact the dominant color) and
generally bad (constants can get out of sync).
This CL adds `bool FallbackIconStyle::is_default_background_color`, so
we can check that instead of comparing colors, and threads it through to
Android. It also deletes a few copies of the color constant. Three
copies remain: the authoritative copy in fallback_icon_style.cc, one in
its test, and one in Android's colors.xml.
BUG=651056
Committed: https://crrev.com/b2a55666aab061458f3d721909533a26de137a29
Cr-Commit-Position: refs/heads/master@{#422739}
Patch Set 1 #
Total comments: 11
Patch Set 2 : revision #Patch Set 3 : Unflip condition. #
Total comments: 2
Patch Set 4 : cleanup #Patch Set 5 : Merge branch 'refs/heads/master' into default-color #Patch Set 6 : Merge branch 'refs/heads/master' into default-color #Messages
Total messages: 43 (29 generated)
|