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

Issue 2823093002: Make FaviconService::GetRawFaviconForPageURL() select the best candidate among all the icon types (Closed)

Created:
3 years, 8 months ago by pkotwicz
Modified:
3 years, 7 months ago
Reviewers:
michaelbai, mastiz, sky
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make FaviconService::GetRawFaviconForPageURL() select the best candidate among all the icon types This CL changes the behavior of FaviconService::GetRawFaviconForPageURL() when multiple icon types are passed in. Scenario: A page_url is mapped to: icon_url1 of type FAVICON icon_url2 of type TOUCH_ICON Previously FaviconService::GetRawFaviconForPageURL(*, FAVICON | TOUCH_ICON, *, *) returned the TOUCH_ICON regardless of which icon url was a better match because TOUCH_ICONs had precence over FAVICONs. This CL changes FaviconService::GetRawFaviconForPageURL(*, FAVICON | TOUCH_ICON, *, *) to return the icon url which is a better match. This CL changes the behavior FaviconHelper#getLocalFaviconImageForURL() BUG=712466 Review-Url: https://codereview.chromium.org/2823093002 Cr-Commit-Position: refs/heads/master@{#471674} Committed: https://chromium.googlesource.com/chromium/src/+/1fb2030a6e961c668f3636d6fb65ca4effee0341

Patch Set 1 : Merge branch 'master' into icon_type #

Total comments: 4

Patch Set 2 : Merge branch 'icon_type0' into icon_type #

Total comments: 6

Patch Set 3 : Merge branch 'icon_type0' into icon_type #

Patch Set 4 : Merge branch 'icon_type0' into icon_type #

Total comments: 1

Patch Set 5 : Merge branch 'master' into icon_type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -65 lines) Patch
M components/favicon/core/favicon_service.h View 1 2 1 chunk +3 lines, -7 lines 0 comments Download
M components/history/core/browser/history_backend_unittest.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M components/history/core/browser/thumbnail_database.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M components/history/core/browser/thumbnail_database.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M components/history/core/browser/thumbnail_database_unittest.cc View 1 2 3 4 3 chunks +37 lines, -46 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
pkotwicz
mastiz@ can you please take a look?
3 years, 8 months ago (2017-04-18 00:17:51 UTC) #4
mastiz
Thanks! Can you please clarify (in the UI description) which UIs would be affected by ...
3 years, 8 months ago (2017-04-18 08:04:35 UTC) #6
pkotwicz
FaviconHelper#getLocalFaviconImageForURL() is the only caller of FaviconService::GetRawFaviconForPageURL(). FaviconHelper#getLocalFaviconImageForURL() is used on various UIs on Android ...
3 years, 8 months ago (2017-04-20 04:06:19 UTC) #9
mastiz
LGTM modulo optional comments, thanks! On 2017/04/20 04:06:19, pkotwicz wrote: > FaviconHelper#getLocalFaviconImageForURL() is the only ...
3 years, 8 months ago (2017-04-20 08:55:50 UTC) #10
mastiz
https://codereview.chromium.org/2823093002/diff/40001/components/history/core/browser/thumbnail_database.h File components/history/core/browser/thumbnail_database.h (right): https://codereview.chromium.org/2823093002/diff/40001/components/history/core/browser/thumbnail_database.h#newcode176 components/history/core/browser/thumbnail_database.h:176: // mapping_data is not NULL. Does anybody use the ...
3 years, 8 months ago (2017-04-20 08:55:59 UTC) #11
pkotwicz
Scott, can you please take a look? This CL makes calling FaviconService::GetRawFaviconForPageURL() with multiple icon ...
3 years, 7 months ago (2017-04-30 03:49:56 UTC) #12
pkotwicz
Scott, Ping!
3 years, 7 months ago (2017-05-10 20:44:04 UTC) #14
sky
This LGTM, but the current logic was specifically added by Tao. Tao, is this change ...
3 years, 7 months ago (2017-05-12 13:23:03 UTC) #16
michaelbai
Thanks for pinging me, LGTM
3 years, 7 months ago (2017-05-12 16:16:56 UTC) #17
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/2823093002/100001
3 years, 7 months ago (2017-05-14 20:15:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/426144)
3 years, 7 months ago (2017-05-14 21:06:35 UTC) #22
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/2823093002/100001
3 years, 7 months ago (2017-05-15 04:54:20 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 05:29:57 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/1fb2030a6e961c668f3636d6fb65...

Powered by Google App Engine
This is Rietveld 408576698