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

Issue 2347173002: Extend FaviconService to support fetching favicons from a Google server (Closed)

Created:
4 years, 3 months ago by jkrcal
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, browser-components-watch_chromium.org, droger+watchlist_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extend FaviconService to support fetching favicons from a Google server Currently, the chrome client-side favicon service does not support fetching favicons from any Google favicon server. Showing good favicons independently of the local cache is important for synced content or for content suggested by the server-side. This CL adds this feature. BUG=644102

Patch Set 1 #

Patch Set 2 : Minor polish #

Total comments: 27

Patch Set 3 : First round of comments #

Total comments: 10

Patch Set 4 : Addressing some comments #

Total comments: 19

Patch Set 5 : Resizing the icons to desired_size #

Patch Set 6 : Requiring minimum_size #

Total comments: 37

Patch Set 7 : Peter's comments #

Total comments: 15

Patch Set 8 : Peter's comments #2 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -65 lines) Patch
M chrome/browser/android/favicon_helper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/favicon/favicon_service_factory.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M components/favicon/content/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/content/content_favicon_driver_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M components/favicon/core/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon/core/favicon_service.h View 1 2 3 4 5 6 7 6 chunks +74 lines, -1 line 0 comments Download
M components/favicon/core/favicon_service.cc View 1 2 3 4 5 6 7 5 chunks +155 lines, -3 lines 4 comments Download
M components/favicon/core/large_icon_service_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M components/favicon_base/favicon_types.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_util.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -1 line 0 comments Download
M components/favicon_base/favicon_util.cc View 1 2 3 4 5 6 2 chunks +50 lines, -53 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M components/history/core/browser/history_backend_unittest.cc View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 3 comments Download
M components/ntp_tiles/icon_cacher_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M ios/chrome/browser/favicon/favicon_service_factory.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 2 comments Download

Messages

Total messages: 33 (4 generated)
jkrcal
Peter, could you PTAL? Éric, could you PTAL at the iOS factory? Marc, could you ...
4 years, 3 months ago (2016-09-16 16:18:12 UTC) #2
sclittle
data_use_measurement dependency LGTM
4 years, 3 months ago (2016-09-16 19:16:16 UTC) #3
Marc Treib
lgtm https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc#newcode39 components/favicon/core/favicon_service.cc:39: if (size > arbitrary_size) I think this should ...
4 years, 3 months ago (2016-09-19 08:26:39 UTC) #4
noyau (Ping after 24h)
https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc#newcode39 components/favicon/core/favicon_service.cc:39: if (size > arbitrary_size) On 2016/09/19 08:26:39, Marc Treib ...
4 years, 3 months ago (2016-09-19 09:00:50 UTC) #5
pkotwicz
I will take a look at this CL today. Sorry for the delay
4 years, 3 months ago (2016-09-19 17:30:39 UTC) #6
pkotwicz
https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc#newcode232 components/favicon/core/favicon_service.cc:232: std::string client_id, |client_id| seems unused. Do you need to ...
4 years, 3 months ago (2016-09-19 20:07:51 UTC) #7
jkrcal
Thanks for all the helpful comments! PTAL, again. https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc#newcode39 components/favicon/core/favicon_service.cc:39: if ...
4 years, 3 months ago (2016-09-20 15:52:07 UTC) #8
noyau (Ping after 24h)
https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/20001/components/favicon/core/favicon_service.cc#newcode422 components/favicon/core/favicon_service.cc:422: favicon_base::IconType::FAVICON, image_result.image); On 2016/09/20 15:52:06, jkrcal wrote: > On ...
4 years, 3 months ago (2016-09-21 09:49:20 UTC) #9
pkotwicz
A few more comments I played around with the API https://s2.googleusercontent.com/s2/favicons?domain=https://www.wikipedia.org&sz=256&alt=404 (These are not really ...
4 years, 3 months ago (2016-09-21 20:55:54 UTC) #10
stkhapugin
drive-by. Thank you for exceptional documenting comments. https://codereview.chromium.org/2347173002/diff/40001/components/favicon/core/favicon_service.h File components/favicon/core/favicon_service.h (right): https://codereview.chromium.org/2347173002/diff/40001/components/favicon/core/favicon_service.h#newcode147 components/favicon/core/favicon_service.h:147: // 32, ...
4 years, 2 months ago (2016-09-28 16:12:18 UTC) #13
pkotwicz
https://codereview.chromium.org/2347173002/diff/40001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/40001/components/favicon/core/favicon_service.cc#newcode415 components/favicon/core/favicon_service.cc:415: if (image_result.image.IsEmpty()) { Can you move this if to ...
4 years ago (2016-12-07 04:31:22 UTC) #14
jkrcal
The CL is not complete. Submitting now to be able to ask questions to pkotwicz@. ...
4 years ago (2016-12-09 13:57:45 UTC) #15
pkotwicz
Jan, I think I responded to all of your questions. Let me know if you ...
4 years ago (2016-12-09 19:46:31 UTC) #16
jkrcal
Thanks, Peter! Follow-up questions below. PTAL. https://codereview.chromium.org/2347173002/diff/40001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/40001/components/favicon/core/favicon_service.cc#newcode250 components/favicon/core/favicon_service.cc:250: image_fetcher_->StartOrQueueNetworkRequest( On 2016/12/09 ...
4 years ago (2016-12-14 15:18:50 UTC) #17
pkotwicz
I responded to your questions. As a heads up I will be out of the ...
4 years ago (2016-12-15 01:22:27 UTC) #18
jkrcal
Peter, thanks! One question hopefully resolved. For the other, I still have a follow-up question. ...
4 years ago (2016-12-15 18:17:28 UTC) #19
pkotwicz
https://codereview.chromium.org/2347173002/diff/60001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/60001/components/favicon/core/favicon_service.cc#newcode420 components/favicon/core/favicon_service.cc:420: // simplest path? Or should I do it similarly ...
4 years ago (2016-12-15 18:43:57 UTC) #20
jkrcal
Thanks, Peter! PTAL, again! Did you come up with any better name for the function? ...
4 years ago (2016-12-16 12:53:52 UTC) #21
pkotwicz
Mostly nits Yes, you should add a TODO to remove FaviconRawBitmapResult::pixel_size and file a bug ...
4 years ago (2016-12-19 00:03:29 UTC) #22
jkrcal
Thanks, Peter. PTAL, again! https://codereview.chromium.org/2347173002/diff/100001/chrome/browser/favicon/favicon_service_factory.cc File chrome/browser/favicon/favicon_service_factory.cc (right): https://codereview.chromium.org/2347173002/diff/100001/chrome/browser/favicon/favicon_service_factory.cc#newcode32 chrome/browser/favicon/favicon_service_factory.cc:32: profile->GetRequestContext())); On 2016/12/19 00:03:28, pkotwicz ...
4 years ago (2016-12-19 17:07:19 UTC) #23
pkotwicz
Your CL looks mostly good by me. I don't have comments other the ones that ...
4 years ago (2016-12-20 02:33:02 UTC) #24
jkrcal
Peter, I finally managed to get back to the CL. Could you please take another ...
3 years, 10 months ago (2017-02-06 19:01:23 UTC) #26
sky
Do you have a design doc you could point me at? If not a design ...
3 years, 10 months ago (2017-02-06 22:29:24 UTC) #27
pkotwicz
https://codereview.chromium.org/2347173002/diff/120001/components/favicon/core/favicon_service.cc File components/favicon/core/favicon_service.cc (right): https://codereview.chromium.org/2347173002/diff/120001/components/favicon/core/favicon_service.cc#newcode415 components/favicon/core/favicon_service.cc:415: favicon_bitmap_results) { Solution #1 sounds ok to me. Especially ...
3 years, 10 months ago (2017-02-07 03:11:44 UTC) #28
pkotwicz
https://codereview.chromium.org/2347173002/diff/100001/chrome/browser/favicon/favicon_service_factory.cc File chrome/browser/favicon/favicon_service_factory.cc (right): https://codereview.chromium.org/2347173002/diff/100001/chrome/browser/favicon/favicon_service_factory.cc#newcode32 chrome/browser/favicon/favicon_service_factory.cc:32: profile->GetRequestContext())); I am ok with the ImageFetcherImpl https://codereview.chromium.org/2347173002/diff/140001/components/favicon/core/favicon_service.cc File ...
3 years, 10 months ago (2017-02-07 04:55:55 UTC) #29
jkrcal
On 2017/02/06 22:29:24, sky wrote: > Do you have a design doc you could point ...
3 years, 10 months ago (2017-02-09 20:38:04 UTC) #30
jkrcal
On 2017/02/09 20:38:04, jkrcal wrote: > On 2017/02/06 22:29:24, sky wrote: > > Do you ...
3 years, 10 months ago (2017-02-13 14:38:55 UTC) #31
sky
I added a couple of comments to the doc. -Scott On Mon, Feb 13, 2017 ...
3 years, 10 months ago (2017-02-14 17:55:03 UTC) #32
chromium-reviews
3 years, 10 months ago (2017-02-15 18:44:28 UTC) #33
Thanks! I've expanded the text to address your comments.

Jan

On Tue, Feb 14, 2017 at 6:55 PM, Scott Violet <sky@chromium.org> wrote:

> I added a couple of comments to the doc.
>
>   -Scott
>
> On Mon, Feb 13, 2017 at 6:38 AM,  <jkrcal@chromium.org> wrote:
> > On 2017/02/09 20:38:04, jkrcal wrote:
> >> On 2017/02/06 22:29:24, sky wrote:
> >> > Do you have a design doc you could point me at? If not a design doc,
> at
> > least
> >> a
> >> > general overview of where fetching icons from google comes in and if
> >> > these
> >> icons
> >> > are treated differently? Favicon fetching is tricky, and before
> jumping
> >> > into
> >> the
> >> > code I would like to understand where you want to go.
> >>
> >> Scott, while writing up the doc, we realized we probably want to do it
> > slightly
> >> differently.
> >> I'll loop you in again when the code & the design-doc are ready
> (probably
> >> tomorrow or on Monday).
> >
> > Scott, the design doc and the new CL are here, PTAL!
> > go/favicon-pe-google-server
> > https://codereview.chromium.org/2685173002/
> > Both is WIP -> please ask questions if anything is not clear enough!
> >
> > https://codereview.chromium.org/2347173002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698