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

Issue 8355031: Most Visited: remove over-eager optimization that causes a lot of blank thumbnails (Closed)

Created:
9 years, 2 months ago by Evan Stade
Modified:
9 years, 2 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Most Visited: remove over-eager optimization that causes a lot of blank thumbnails after storing thumbnails in the thread safe cache, we were removing those which are not currently in the top 8. This sucks because then when you blacklist a site, the thumbnail for the replacement is not in the cache, so we use a default image even though the thumbnail is available in the DB. The optimization hardly saves us anything, as the number of cached thumbnails is capped to begin with, and we are only trimming to 8, and it's ref counted data anyway so it's already resident somewhere else in memory either way. BUG=none TEST=blacklist a site. Most likely you will get an actual thumbnail for its replacement Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106559

Patch Set 1 #

Patch Set 2 : fix test and remove unused function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -30 lines) Patch
M chrome/browser/history/top_sites.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/history/top_sites_cache.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/history/top_sites_cache.cc View 1 2 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/history/top_sites_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Evan Stade
9 years, 2 months ago (2011-10-20 02:13:15 UTC) #1
sky
LGTM
9 years, 2 months ago (2011-10-20 16:39:49 UTC) #2
Evan Stade
updated (fixed test and removed dead code)
9 years, 2 months ago (2011-10-20 18:15:03 UTC) #3
sky
LGTM
9 years, 2 months ago (2011-10-20 18:29:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/8355031/4001
9 years, 2 months ago (2011-10-20 18:46:55 UTC) #5
commit-bot: I haz the power
9 years, 2 months ago (2011-10-20 20:19:13 UTC) #6
Change committed as 106559

Powered by Google App Engine
This is Rietveld 408576698