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

Issue 10824319: Give SelectFaviconFrames a quality score. (Closed)

Created:
8 years, 4 months ago by Nico
Modified:
8 years, 4 months ago
Reviewers:
pkotwicz, sky
CC:
chromium-reviews, pkotwicz
Visibility:
Public.

Description

Give SelectFaviconFrames a quality score. Use this score to decide which favicon to pick. BUG=141039 TEST=visit reddit.com. Favicon shows just the head of the reddit alient, not the whole alien. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151812

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : 1 #

Patch Set 4 : test #

Total comments: 1

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -35 lines) Patch
M chrome/browser/favicon/favicon_handler.h View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/favicon/favicon_handler.cc View 1 2 6 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/favicon/favicon_handler_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/favicon/favicon_tab_helper.cc View 1 2 3 4 2 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/favicon/select_favicon_frames.h View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/favicon/select_favicon_frames.cc View 7 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/favicon/select_favicon_frames_unittest.cc View 1 2 3 4 9 chunks +37 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Nico
8 years, 4 months ago (2012-08-15 22:02:46 UTC) #1
pkotwicz
https://chromiumcodereview.appspot.com/10824319/diff/1001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://chromiumcodereview.appspot.com/10824319/diff/1001/chrome/browser/favicon/favicon_handler.cc#newcode170 chrome/browser/favicon/favicon_handler.cc:170: bool exact_match = score == 0; I might be ...
8 years, 4 months ago (2012-08-15 22:29:09 UTC) #2
Nico
https://chromiumcodereview.appspot.com/10824319/diff/1001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://chromiumcodereview.appspot.com/10824319/diff/1001/chrome/browser/favicon/favicon_handler.cc#newcode170 chrome/browser/favicon/favicon_handler.cc:170: bool exact_match = score == 0; On 2012/08/15 22:29:09, ...
8 years, 4 months ago (2012-08-15 22:30:43 UTC) #3
Nico
https://chromiumcodereview.appspot.com/10824319/diff/1001/chrome/browser/favicon/favicon_handler.cc File chrome/browser/favicon/favicon_handler.cc (right): https://chromiumcodereview.appspot.com/10824319/diff/1001/chrome/browser/favicon/favicon_handler.cc#newcode170 chrome/browser/favicon/favicon_handler.cc:170: bool exact_match = score == 0; On 2012/08/15 22:30:43, ...
8 years, 4 months ago (2012-08-15 22:39:09 UTC) #4
sky
LGTM - can you add more coverage to FaviconIconHandlerTest for choosing the best match? https://chromiumcodereview.appspot.com/10824319/diff/7003/chrome/browser/favicon/favicon_tab_helper.cc ...
8 years, 4 months ago (2012-08-16 00:26:20 UTC) #5
Nico
Thanks! On Wed, Aug 15, 2012 at 5:26 PM, <sky@chromium.org> wrote: > LGTM - can ...
8 years, 4 months ago (2012-08-16 01:07:54 UTC) #6
sky
8 years, 4 months ago (2012-08-16 02:36:17 UTC) #7
SLGTM

On Wed, Aug 15, 2012 at 6:07 PM, Nico Weber <thakis@chromium.org> wrote:
> Thanks!
>
> On Wed, Aug 15, 2012 at 5:26 PM,  <sky@chromium.org> wrote:
>> LGTM - can you add more coverage to FaviconIconHandlerTest for choosing the
>> best match?
>
> Added another test to SelectFaviconFramesTest instead.
>
>>
>>
>>
https://chromiumcodereview.appspot.com/10824319/diff/7003/chrome/browser/favi...
>> File chrome/browser/favicon/favicon_tab_helper.cc (right):
>>
>>
https://chromiumcodereview.appspot.com/10824319/diff/7003/chrome/browser/favi...
>> chrome/browser/favicon/favicon_tab_helper.cc:198: float score;
>> Can you set this to 0 here jsut to be sure.
>>
>> https://chromiumcodereview.appspot.com/10824319/

Powered by Google App Engine
This is Rietveld 408576698