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

Issue 6813040: Add TopSites::GetTemporaryThumbnailScore(). (Closed)

Created:
9 years, 8 months ago by satorux1
Modified:
9 years, 7 months ago
Reviewers:
brettw, sky
CC:
chromium-reviews, Avi (use Gerrit), Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Add TopSites::GetTemporaryThumbnailScore(). This will make the in-browser thumbnailing more efficient. Before this change, we regenerated a thumbnail even when we had a good thumbnail, if it's not yet saved (this occurred when the top site list was not yet full) BUG=65936 TEST=confirm that the in-browser thumbnailing doesn't regenerate a thumbnail when we already have one. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81216

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : update ThumbnailGenerator #

Patch Set 4 : re-upload #

Total comments: 2

Patch Set 5 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -4 lines) Patch
M chrome/browser/history/top_sites.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites_unittest.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/thumbnail_generator.cc View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
satorux1
9 years, 8 months ago (2011-04-08 10:48:04 UTC) #1
sky
http://codereview.chromium.org/6813040/diff/1/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6813040/diff/1/chrome/browser/history/top_sites.cc#newcode248 chrome/browser/history/top_sites.cc:248: // The thumbnail may be found in the temporary ...
9 years, 8 months ago (2011-04-08 15:59:07 UTC) #2
satorux1
http://codereview.chromium.org/6813040/diff/1/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6813040/diff/1/chrome/browser/history/top_sites.cc#newcode248 chrome/browser/history/top_sites.cc:248: // The thumbnail may be found in the temporary ...
9 years, 8 months ago (2011-04-09 02:36:51 UTC) #3
sky
http://codereview.chromium.org/6813040/diff/5001/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6813040/diff/5001/chrome/browser/history/top_sites.cc#newcode249 chrome/browser/history/top_sites.cc:249: base::AutoLock lock(lock_); The rest of the class doesn't lock ...
9 years, 8 months ago (2011-04-11 14:31:09 UTC) #4
satorux1
http://codereview.chromium.org/6813040/diff/5001/chrome/browser/history/top_sites.cc File chrome/browser/history/top_sites.cc (right): http://codereview.chromium.org/6813040/diff/5001/chrome/browser/history/top_sites.cc#newcode249 chrome/browser/history/top_sites.cc:249: base::AutoLock lock(lock_); On 2011/04/11 14:31:09, sky wrote: > The ...
9 years, 8 months ago (2011-04-11 15:19:09 UTC) #5
sky
http://codereview.chromium.org/6813040/diff/6003/chrome/browser/tab_contents/thumbnail_generator.cc File chrome/browser/tab_contents/thumbnail_generator.cc (right): http://codereview.chromium.org/6813040/diff/6003/chrome/browser/tab_contents/thumbnail_generator.cc#newcode678 chrome/browser/tab_contents/thumbnail_generator.cc:678: if (top_sites->GetTemporaryPageThumbnailScore(url, &current_score) && Shouldn't this remain as GetPageThumbnailScore?
9 years, 8 months ago (2011-04-11 15:24:02 UTC) #6
satorux1
http://codereview.chromium.org/6813040/diff/6003/chrome/browser/tab_contents/thumbnail_generator.cc File chrome/browser/tab_contents/thumbnail_generator.cc (right): http://codereview.chromium.org/6813040/diff/6003/chrome/browser/tab_contents/thumbnail_generator.cc#newcode678 chrome/browser/tab_contents/thumbnail_generator.cc:678: if (top_sites->GetTemporaryPageThumbnailScore(url, &current_score) && On 2011/04/11 15:24:03, sky wrote: ...
9 years, 8 months ago (2011-04-11 15:31:45 UTC) #7
sky
9 years, 8 months ago (2011-04-11 15:57:53 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698