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

Issue 26563004: Find Favicon in priority of icon_type. (Closed)

Created:
7 years, 2 months ago by michaelbai
Modified:
7 years, 2 months ago
Reviewers:
pkotwicz, sky
CC:
chromium-reviews, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Find Favicon in priority of icon_type. This patch provided a way to find the favicon in the order of a list of icon_types. if the best fit icon is found the rest of icon_types will not be searched, otherwise, the largest icon of all list icon_types is returned. BUG=298446 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229760

Patch Set 1 #

Total comments: 17

Patch Set 2 : address comments #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 6

Patch Set 4 : add a new method #

Total comments: 34

Patch Set 5 : address comments #

Total comments: 28

Patch Set 6 : #

Total comments: 22

Patch Set 7 : address comments #

Total comments: 3

Patch Set 8 : #

Total comments: 27

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -16 lines) Patch
M chrome/browser/favicon/favicon_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/favicon/favicon_service.cc View 1 2 3 4 5 6 7 8 4 chunks +42 lines, -11 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 7 8 1 chunk +94 lines, -0 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 3 4 5 6 1 chunk +109 lines, -0 lines 0 comments Download
M chrome/browser/history/history_service.h View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 7 8 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
michaelbai
7 years, 2 months ago (2013-10-08 21:34:50 UTC) #1
sky
+pkotwicz https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h#newcode58 chrome/browser/favicon/favicon_service.h:58: const std::vector<int> icon_types_priority, const std::vector<int>& https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h#newcode69 chrome/browser/favicon/favicon_service.h:69: std::vector<int> ...
7 years, 2 months ago (2013-10-08 23:47:52 UTC) #2
pkotwicz
I will take a look at this CL on Wednesday. Michael, so that I can ...
7 years, 2 months ago (2013-10-09 00:17:34 UTC) #3
pkotwicz
https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h#newcode65 chrome/browser/favicon/favicon_service.h:65: threshold_for_next_icon_types(threshold_for_next_icon_types) {} I would expect to have a vector ...
7 years, 2 months ago (2013-10-09 17:11:50 UTC) #4
michaelbai
Want to clarify one thing, the query is same as before except the query will ...
7 years, 2 months ago (2013-10-09 18:35:09 UTC) #5
pkotwicz
I wonder whether: 1. Find the largest icon in favicon. 2. If the found icon ...
7 years, 2 months ago (2013-10-09 19:01:09 UTC) #6
michaelbai
On 2013/10/09 19:01:09, pkotwicz wrote: > I wonder whether: > 1. Find the largest icon ...
7 years, 2 months ago (2013-10-09 19:11:09 UTC) #7
sky
https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.cc#newcode1711 chrome/browser/history/history_backend.cc:1711: GetFaviconsFromDB(page_url, *i, desired_size_in_dip, desired_scale_factors, On 2013/10/09 18:35:09, michaelbai wrote: ...
7 years, 2 months ago (2013-10-09 20:33:23 UTC) #8
michaelbai
PTAL, I should address all comments https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/favicon/favicon_service.h#newcode58 chrome/browser/favicon/favicon_service.h:58: const std::vector<int> icon_types_priority, ...
7 years, 2 months ago (2013-10-10 05:51:42 UTC) #9
michaelbai
https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.cc#newcode1711 chrome/browser/history/history_backend.cc:1711: GetFaviconsFromDB(page_url, *i, desired_size_in_dip, desired_scale_factors, To be more specific, AFAIK ...
7 years, 2 months ago (2013-10-10 18:23:02 UTC) #10
pkotwicz
If I was doing the implementation, I would be tempted to modify ThumbnailDatabase::GetIconMappingsForPageURL() and change ...
7 years, 2 months ago (2013-10-10 18:35:55 UTC) #11
sky
https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.h#newcode247 chrome/browser/history/history_backend.h:247: const std::vector<int>& icon_types_priority, On 2013/10/10 05:51:43, michaelbai wrote: > ...
7 years, 2 months ago (2013-10-10 20:35:12 UTC) #12
michaelbai
PTAL https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): https://codereview.chromium.org/26563004/diff/1/chrome/browser/history/history_backend.h#newcode247 chrome/browser/history/history_backend.h:247: const std::vector<int>& icon_types_priority, The use case is we ...
7 years, 2 months ago (2013-10-10 22:39:57 UTC) #13
pkotwicz
I will look at this on Friday.
7 years, 2 months ago (2013-10-11 00:40:21 UTC) #14
pkotwicz
https://codereview.chromium.org/26563004/diff/25001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/25001/chrome/browser/history/history_backend.cc#newcode1700 chrome/browser/history/history_backend.cc:1700: void HistoryBackend::GetFaviconsForURL( I think it may be best to ...
7 years, 2 months ago (2013-10-11 16:14:19 UTC) #15
michaelbai
https://codereview.chromium.org/26563004/diff/25001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/25001/chrome/browser/history/history_backend.cc#newcode1700 chrome/browser/history/history_backend.cc:1700: void HistoryBackend::GetFaviconsForURL( I had discussed adding new method with ...
7 years, 2 months ago (2013-10-11 16:34:32 UTC) #16
sky
https://codereview.chromium.org/26563004/diff/25001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/25001/chrome/browser/history/history_backend.cc#newcode1700 chrome/browser/history/history_backend.cc:1700: void HistoryBackend::GetFaviconsForURL( In looking at this bit more I ...
7 years, 2 months ago (2013-10-11 18:03:28 UTC) #17
michaelbai
PTAL Add the new method
7 years, 2 months ago (2013-10-14 06:23:48 UTC) #18
michaelbai
ping
7 years, 2 months ago (2013-10-15 00:03:52 UTC) #19
sky
https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.cc#newcode48 chrome/browser/favicon/favicon_service.cc:48: CancelableTaskTracker::TaskId GetFaviconForChromeURL( Add description. https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.cc#newcode60 chrome/browser/favicon/favicon_service.cc:60: return id; nit: ...
7 years, 2 months ago (2013-10-15 15:03:46 UTC) #20
pkotwicz
A few extra comments. But looks good! https://codereview.chromium.org/26563004/diff/33001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/33001/chrome/browser/history/history_backend.cc#newcode1733 chrome/browser/history/history_backend.cc:1733: for (std::vector<FaviconBitmapIDSize>::const_iterator ...
7 years, 2 months ago (2013-10-15 16:44:32 UTC) #21
michaelbai
PTAL https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.cc#newcode48 chrome/browser/favicon/favicon_service.cc:48: CancelableTaskTracker::TaskId GetFaviconForChromeURL( On 2013/10/15 15:03:47, sky wrote: > ...
7 years, 2 months ago (2013-10-15 19:36:30 UTC) #22
pkotwicz
https://codereview.chromium.org/26563004/diff/47001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/26563004/diff/47001/chrome/browser/favicon/favicon_service.cc#newcode48 chrome/browser/favicon/favicon_service.cc:48: // Return the TaskId of the one to retreive ...
7 years, 2 months ago (2013-10-15 21:39:41 UTC) #23
michaelbai
thanks, PTAL https://codereview.chromium.org/26563004/diff/47001/chrome/browser/favicon/favicon_service.cc File chrome/browser/favicon/favicon_service.cc (right): https://codereview.chromium.org/26563004/diff/47001/chrome/browser/favicon/favicon_service.cc#newcode48 chrome/browser/favicon/favicon_service.cc:48: // Return the TaskId of the one ...
7 years, 2 months ago (2013-10-15 22:52:34 UTC) #24
sky
https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.h#newcode177 chrome/browser/favicon/favicon_service.h:177: Profile* profile, On 2013/10/15 19:36:31, michaelbai wrote: > Currently, ...
7 years, 2 months ago (2013-10-16 13:27:14 UTC) #25
pkotwicz
https://codereview.chromium.org/26563004/diff/47001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/47001/chrome/browser/history/history_backend.cc#newcode1701 chrome/browser/history/history_backend.cc:1701: const std::vector<int>& icon_types, I see your point. In practice ...
7 years, 2 months ago (2013-10-16 16:59:40 UTC) #26
michaelbai
PTAL https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/33001/chrome/browser/favicon/favicon_service.h#newcode177 chrome/browser/favicon/favicon_service.h:177: Profile* profile, I will do it in separated ...
7 years, 2 months ago (2013-10-16 18:17:04 UTC) #27
pkotwicz
https://codereview.chromium.org/26563004/diff/47001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/47001/chrome/browser/history/history_backend.cc#newcode1762 chrome/browser/history/history_backend.cc:1762: largest_icon.pixel_size.height() == 0) { HistoryBackend::SetImportedFavicons() is another case
7 years, 2 months ago (2013-10-16 18:28:24 UTC) #28
michaelbai
ping
7 years, 2 months ago (2013-10-17 21:07:33 UTC) #29
pkotwicz
https://codereview.chromium.org/26563004/diff/68001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/68001/chrome/browser/history/history_backend.cc#newcode1734 chrome/browser/history/history_backend.cc:1734: if ((largest.icon_id == 0 && largest.bitmap_id == 0) || ...
7 years, 2 months ago (2013-10-17 22:54:17 UTC) #30
michaelbai
PTAL https://codereview.chromium.org/26563004/diff/68001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/68001/chrome/browser/history/history_backend.cc#newcode1754 chrome/browser/history/history_backend.cc:1754: if (f->first & *t && On 2013/10/17 22:54:17, ...
7 years, 2 months ago (2013-10-18 00:27:05 UTC) #31
sky
https://codereview.chromium.org/26563004/diff/81001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/81001/chrome/browser/history/history_backend.cc#newcode1766 chrome/browser/history/history_backend.cc:1766: GURL icon_url; Isn't it possible to get here and ...
7 years, 2 months ago (2013-10-18 01:21:59 UTC) #32
pkotwicz
LGTM with nits https://codereview.chromium.org/26563004/diff/81001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/81001/chrome/browser/favicon/favicon_service.h#newcode175 chrome/browser/favicon/favicon_service.h:175: // See HistoryService::GetLargestFaviconForURL. Nit: See HistoryService::GetLargestFaviconForURL() ...
7 years, 2 months ago (2013-10-18 01:29:34 UTC) #33
michaelbai
PTAL https://codereview.chromium.org/26563004/diff/81001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/81001/chrome/browser/favicon/favicon_service.h#newcode175 chrome/browser/favicon/favicon_service.h:175: // See HistoryService::GetLargestFaviconForURL. On 2013/10/18 01:29:35, pkotwicz wrote: ...
7 years, 2 months ago (2013-10-18 04:37:01 UTC) #34
sky
https://codereview.chromium.org/26563004/diff/81001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/81001/chrome/browser/history/history_backend.cc#newcode1766 chrome/browser/history/history_backend.cc:1766: GURL icon_url; Then please update the docs. On 2013/10/18 ...
7 years, 2 months ago (2013-10-18 14:11:39 UTC) #35
michaelbai
PTAL https://codereview.chromium.org/26563004/diff/81001/chrome/browser/history/history_backend.cc File chrome/browser/history/history_backend.cc (right): https://codereview.chromium.org/26563004/diff/81001/chrome/browser/history/history_backend.cc#newcode1766 chrome/browser/history/history_backend.cc:1766: GURL icon_url; The doc covers this case, did ...
7 years, 2 months ago (2013-10-18 17:31:47 UTC) #36
sky
LGTM https://codereview.chromium.org/26563004/diff/204001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/26563004/diff/204001/chrome/browser/favicon/favicon_service.h#newcode81 chrome/browser/favicon/favicon_service.h:81: // Returns an invalid chrome::FaviconBitmapResult if there are ...
7 years, 2 months ago (2013-10-18 19:29:00 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/26563004/254001
7 years, 2 months ago (2013-10-18 21:12:20 UTC) #38
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-18 23:54:03 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/michaelbai@chromium.org/26563004/454001
7 years, 2 months ago (2013-10-21 04:41:49 UTC) #40
commit-bot: I haz the power
7 years, 2 months ago (2013-10-21 08:42:47 UTC) #41
Message was sent while issue was closed.
Change committed as 229760

Powered by Google App Engine
This is Rietveld 408576698