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

Issue 2374753002: Track when fallback icon color is the default. (Closed)

Created:
4 years, 2 months ago by sfiera
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tfarina, sdefresne+watch_chromium.org, browser-components-watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -36 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkItemRow.java View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/bookmarkswidget/BookmarkWidgetService.java View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java View 1 2 3 5 chunks +25 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java View 1 2 3 4 5 5 chunks +10 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/ConfirmImportantSitesDialogFragment.java View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/android/large_icon_bridge.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M components/favicon_base/fallback_icon_style.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon_base/fallback_icon_style.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M components/favicon_base/fallback_icon_url_parser.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M components/favicon_base/fallback_icon_url_parser_unittest.cc View 9 chunks +9 lines, -0 lines 0 comments Download
M ios/chrome/browser/favicon/large_icon_cache_unittest.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (29 generated)
sfiera
PTAL. I don't know what the URL parser is used for, since there doesn't seem ...
4 years, 2 months ago (2016-09-27 15:49:47 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/2374753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java File chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java (right): https://codereview.chromium.org/2374753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java#newcode24 chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java:24: private LruCache<String, Pair<Bitmap, Pair<Integer, Boolean>>> mFaviconCache; This is getting ...
4 years, 2 months ago (2016-09-27 16:14:57 UTC) #5
sfiera
https://codereview.chromium.org/2374753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java File chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java (right): https://codereview.chromium.org/2374753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java#newcode24 chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java:24: private LruCache<String, Pair<Bitmap, Pair<Integer, Boolean>>> mFaviconCache; On 2016/09/27 16:14:57, ...
4 years, 2 months ago (2016-09-27 16:50:37 UTC) #8
pkotwicz
I'll take a look at this CL tonight
4 years, 2 months ago (2016-09-27 17:06:20 UTC) #9
pkotwicz
L-G-T-M once you address bauerb@'s comments. Thank you for the detailed CL description! Especially the ...
4 years, 2 months ago (2016-09-28 03:52:52 UTC) #10
sfiera
Thanks. https://codereview.chromium.org/2374753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java File chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java (right): https://codereview.chromium.org/2374753002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java#newcode24 chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java:24: private LruCache<String, Pair<Bitmap, Pair<Integer, Boolean>>> mFaviconCache; On 2016/09/27 ...
4 years, 2 months ago (2016-09-28 13:15:52 UTC) #14
Bernhard Bauer
lgtm https://codereview.chromium.org/2374753002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java File chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java (right): https://codereview.chromium.org/2374753002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java#newcode72 chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java:72: int iconBitmapSize = icon.icon == null ? 0 ...
4 years, 2 months ago (2016-09-28 13:49:50 UTC) #19
sfiera
https://codereview.chromium.org/2374753002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java File chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java (right): https://codereview.chromium.org/2374753002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java#newcode72 chrome/android/java/src/org/chromium/chrome/browser/favicon/LargeIconBridge.java:72: int iconBitmapSize = icon.icon == null ? 0 : ...
4 years, 2 months ago (2016-09-28 14:30:47 UTC) #24
pkotwicz
LGTM 🐳
4 years, 2 months ago (2016-09-28 15:27:15 UTC) #27
sfiera
Thanks! Éric, there's a small test change under ios/, if you could please take a ...
4 years, 2 months ago (2016-09-29 09:22:55 UTC) #28
noyau (Ping after 24h)
ios/ lgtm.
4 years, 2 months ago (2016-10-03 08:19:35 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374753002/100001
4 years, 2 months ago (2016-10-04 10:02:18 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-04 10:07:38 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 10:09:35 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b2a55666aab061458f3d721909533a26de137a29
Cr-Commit-Position: refs/heads/master@{#422739}

Powered by Google App Engine
This is Rietveld 408576698